grape-oauth2 / grape_oauth2

Flexible, ORM-agnostic, fully customizable and simple OAuth2 provider for Grape API
41 stars 23 forks source link

Authorization Code flow implemented? #5

Open andrewclink opened 7 years ago

andrewclink commented 7 years ago

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.

If I'm doing something wrong, please let me know. Otherwise, is this just something that needs to be implemented further?

nbulaj commented 7 years ago

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