grape_oauth2
grape_oauth2 copied to clipboard
Authorization Code flow implemented?
I need to use an auth code grant in my application. I can generate a auth code ok and pass that back, but when the client attempts to obtain a token invalid_grant! is called in generators/token.rb:43 because it cannot find a strategy for 'authorization_code'.
Adding Grape::OAuth2::Strategies::AuthorizationCode to the STRATEGY_CLASSES table fixes that, but it appears to expect a different type of Rack Request and Response.
- The arity is different on
::AuthorizationCode'sprocessmethod - The request doesn't implement
verify_redirect_uri!(Rack::OAuth2::Server::Authorize::Request does, but the request is of an AuthorizationCode type) - The response passed is a Rack::OAuth2::Server::Token::Response, which doesn't implement
approve!
If I'm doing something wrong, please let me know. Otherwise, is this just something that needs to be implemented further?
Hi @andrewclink . Currently Authorization Code flow is not implemented (just a stub) and I need some help with it. I will take a look at this a little bit later