Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
garyhooper opened this issue Feb 15, 2020 · 0 comments
Open
Labels

Comments

@garyhooper
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants