Questions tagged [doorkeeper]

Doorkeeper is an OAuth 2 provider for Rails.

Doorkeeper is a gem that makes it easy to introduce OAuth 2 provider functionality to Rails application.

288 questions
15
votes
1 answer

OAuth2 Resource Owner Password Credentials flow

Does the OAuth2 Resource Owner Password Credentials flow only need the following informations for authentication: grant_type: password username: test@test.de password: test Or does it need also the client_id and client_secret? I ask, because I…
kunerd
  • 1,066
  • 9
  • 25
13
votes
1 answer

How do I effectively use Devise and Doorkeeper in my rails API ?

I am having a hard time getting my head around the responsibilities and capabilities of the popular Doorkeeper and Devise gems. I am not overly experienced in authorization and authentication so pardon me if I misunderstood certain aspects of those…
the_critic
  • 12,014
  • 19
  • 60
  • 109
13
votes
3 answers

Single sign out from multiple applications from Doorkeeper provider

I'm using Doorkeeper for my Rails app, and I'm trying to make so that when a user signs out from the doorkeeper provider, the user will automatically signs out from all apps. By default, when a user signs out from an app, he will still be signed in…
Amirol Ahmad
  • 532
  • 5
  • 19
13
votes
4 answers

Creating a new user with credentials, then obtaining a token for that user with Doorkeeper in an API

I'm building an API, protected by Doorkeeper. If I manually create the user (with password) in the backend, and then post the following to oauth/token, Doorkeeper successfully generates an access token for the user and returns it: data = { …
idrysdale
  • 1,471
  • 1
  • 12
  • 21
11
votes
2 answers

undefined method `helper_method' for ApplicationController, Rails 5

I'm trying to integrate oAuth2.0 In my rails-api only application, using doorkeeper. But I keep getting this error, "undefined method `helper_method' for ApplicationController" and yet could not find a clear solution on how to solve it. bellow is…
10
votes
4 answers

How to access current_user from a Doorkeeper authenticated session

I have a rails app that I am attempting to sync with an android app. I've successfully set up authentication using Doorkeeper as the server and Oltu as the client. My app tracks habits which exist as per-user lists. My index method in the habits…
dysbulic
  • 2,677
  • 2
  • 25
  • 40
9
votes
2 answers

Doorkeeper password grant URI::InvalidURIError: query conflicts with opaque

Rails, Devise and Doorkeeper... Trying to test password grant and getting error: URI::InvalidURIError: query conflicts with opaque Any ideas? Update: I created a second rails app that was able to get a token.. so maybe something about…
esteban
  • 168
  • 1
  • 6
9
votes
1 answer

Accessing the current client app using Doorkeeper

I'm using Doorkeeper to manage client applications on a Rails-based API I'm building. I have a controller action in which I'd like to check some information about the client app that submitted the request which the action is handling. Does…
MrTheWalrus
  • 9,515
  • 2
  • 39
  • 65
8
votes
1 answer

502 Bad Gateway (too big header) on Elastic Beanstalk Nginx with Rails 5 App in Production

I am using doorkeeper and devise in my Rails 5 app to implement my own OAuth provider for Amazon Alexa account linking. The flow works fine if the user triggers the OAuth process and is already logged in to my website. But when the user is not…
8
votes
2 answers

Doorkeeper Revoke Token

I'm implementing OAuth 2 in my application, and i already have Login/Refresh Token but i'm having some troubles with logout. I have this set of routes generates by Doorkeeper: Routes for Doorkeeper::Engine: authorization GET …
FxckDead
  • 398
  • 5
  • 16
8
votes
1 answer

what parts are necessary for a custom omniauth oauth2 strategy for integrating with discourse

I'm looking at using discourse which uses omniauth for authentication. I need this to integrate with my current user base (where the currently auth either via email or facebook). One possiblity is to create a custom omniauth strategy (like…
timpone
  • 17,029
  • 31
  • 103
  • 200
7
votes
2 answers

Difference between Access Grant and Access Token

I can't figure out the difference between Token and Grant in Doorkeeper. In which moment, Doorkeeper creates an Access Grant and when an Access Token? The documentation doesn't seems to say nothing about it and now I'm reading the code but is not a…
Tute
  • 170
  • 10
7
votes
2 answers

Doorkeeper resource owner credential flow for multiple models

The problem I'm having is that I'm using doorkeepers resource owner credential flow to authenticate a user from an iOS app. My project has two separate user models though (let's call them User and Admin). My code looks like…
user470763
6
votes
1 answer

Doorkeeper Refresh Tokens Not Expiring on Reuse

I'm using Doorkeeper 5.2.1 and Ive consulted the Doorkeeper docs on refresh tokens and have read through several GitHub issues and pull requests related to refresh tokens, notably here and here. From what I gather from these conversations and from…
nickcoxdotme
  • 5,612
  • 8
  • 39
  • 65
6
votes
1 answer

Devise+activeadmin+doorkeeper - Filter chain halted as :require_no_authentication rendered or redirected

I am not able to generate access token for applications created in /oauth/applications i have done following changes in the doorkeeper initializer file doorkeeper.rb resource_owner_authenticator do User.find_by_id(session[:user_id]) ||…
shubhangi singh
  • 280
  • 1
  • 12
1
2 3
19 20