OAuthSwift / OAuthSwiftAlamofire

Utility method to sign Alamofire request
MIT License
104 stars 38 forks source link

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

Open garyhooper opened 4 years ago

garyhooper commented 4 years ago

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?