Giter Site home page Giter Site logo

groauth2sessionmanager's People

Contributors

boshvark avatar gabrielrinaldi avatar gillygize avatar marmorse avatar rwe avatar stefankendall2 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

groauth2sessionmanager's Issues

Token refresh

Now developer should refresh token manually. What about doing it in manager implicitly in GET/POST/etc methods?

Error in example code in README

Initialization method in example has name clientWithBaseURL:clientID:secret:, but must be managerWithBaseURL:clientID:secret:. :)

Separate setting credentials into a separate class

It would be useful to have an intermediate class I can subclass that just deals with setting a credential. GROAuth2SessionManager could subclass that.

Then I can use one session manager for all my authenticated calls and another for doing the actual auth.

This is more in keeping with out AFOAuth2Client worked:

it is recommended that you use `AFOAuth2Client` exclusively to get an authorization token, which is then passed to another `AFHTTPClient` subclass.

Unless that advise is now out of date?

Vimeo sends additional information in auth response

Refer https://developer.vimeo.com/api/authentication

It's the final request with grant_type = authorization_code, in which Vimeo includes a "user" object to provide some information about who you've authed as. I'm not sure whether this is common practice. It would be pretty straight forward to add more parameters to the success block - but obviously this would be a breaking change. I wonder if other implementations might return information useful to the application in response headers; so maybe we need to pass the operation itself and the responseObject just to be future proof.

I'm going to experiment with this approach in a fork, so I'll be happy to submit a pull request. What do you think about this issue and possible approaches?

Missing values for constants

There are missing values for kAFOAuthCodeGrantType, kAFOAuthClientCredentialsGrantType, kAFOAuthPasswordCredentialsGrantType, kAFOAuthRefreshGrantType so if any of these values is used then it does not compile

Refresh tokens and expiry do not need to be tied together

The OAuth2 spec makes no connection between refresh tokens and expiry. It's possible to have one without the other. Specifically - section 4.4 says there SHOULD NOT be a refresh token. While it is rare that iOS applications will make use of this form of auth, I propose to relax the constraints on refresh tokens and expiry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.