Closed tute closed 12 years ago
It seems I can't run the related test. For running the integration specs on the rails_app inside the gem, do I need to do 'rake spec'?
It always executes 70 succesful examples, regardless of my changes to 'Oauth2AuthorizationCodeGrantTypeStrategy'.
Seeing the same :(
Try adding :oauth2_authorization_code_grantable in your User model, you need all 4 of them (see spec/rails_app/app/models/user.rb - it's missing from the setup instructions in the README. I submitted a pull request. For me this made things work.
I'm trying to use it but I've run into some issues. Out of the box, when I grant access to a client app, oauth2/token does not see the current user (but there is one):
If I comment the before filters from the gem controllers, I get:
The nil object comes from
Oauth2::TokensController#oauth2_current_client
, which returnsenv['oauth2.client']
.Why is this happening? Thanks in advance,
TuteC.