OAuthSwift / OAuthSwiftAlamofire

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

Add oAuth1 support #3

Closed patricks closed 7 years ago

patricks commented 8 years ago

Please add oAuth 1.0 support

phimage commented 8 years ago

oauth2 have static header after authentification, that's why there is an helper to create an alamofire Manager with this preconfigured header

oauth1 need to sign each request according to the url and query parameters, so there is no helper to create a Manager

So you can only use the two other methods in readme

Then maybe there is in Alamofire a way to inject signature for each request with a callback/handler/delegate But until know I have not found where to do it

phimage commented 7 years ago

I will add a RequestAdapter, see alamofire Doc, inpired from AccessTokenAdapter