Skip to content

Question: how to make an Alamofire request without the consumerSecret? #26

@garyhooper

Description

@garyhooper

Today, I am using SessionManager to make my OAuth1 URL requests via Alamofire.

sessionManager = SessionManager( configuration: .default )
sessionManager?.adapter = oauth!.requestAdapter
sessionManager?.request( ... ) ...

This works just fine, except that it requires the consumerSecret to create my OAuth1 object/requestAdapter, even though the OAuth1-authenticated API request only needs the consumerKey and token in the headers.

Is there a straightforward way to create an Alamofire/OAuth1 request without the consumerSecret?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions