With OAuth version 2 you can get a new Alamofire Manager
after authorization process. This manager will use as default headers the one computed by OAuthSwift.
let request = oauth2swift.manager()
On any NSMutableRequest
use addOAuthHeader
or addOAuthHeaderWithCredential
to add Authorization
HTTP header.
You can for instance use it in your URLRequestConvertible
object before returning the NSMutableURLRequest
.
You can also use one of the new methods request
on Alamofire Manager
passing OAuthSwiftCredential
as last parameters.
- tests
- sample project
- cocoapod installation