nxtbgthng / OAuth2Client

Client library for OAuth2 (currently built against draft 10 of the OAuth2 spec)
855 stars 217 forks source link

Automatically Request Access for Connections #184

Closed anagromataf closed 9 years ago

anagromataf commented 9 years ago

Add automatic request of access, if a connection made with the auth client needs authentication.

With this, a connection can be created and directly used. If the server responses with an header indicating, that authorization is needed, the method -[NXOAuth2Client requestAccessAndRetryConnection:] is called. From there the normal flow for authentication starts. After a successful authentication, the original connection is retried.

toto commented 9 years ago

Nice, clean and useful :-)