doorkeeper
Search…
Routes
The installation script will also automatically add the Doorkeeper routes into your app:
config/routes.rb
1
Rails.application.routes.draw do
2
use_doorkeeper
3
# your routes below
4
end
Copied!
This will mount following routes:
1
native_oauth_authorization GET /oauth/authorize/native(.:format) doorkeeper/authorizations#show
2
oauth_authorization GET /oauth/authorize(.:format) doorkeeper/authorizations#new
3
DELETE /oauth/authorize(.:format) doorkeeper/authorizations#destroy
4
POST /oauth/authorize(.:format) doorkeeper/authorizations#create
5
oauth_token POST /oauth/token(.:format) doorkeeper/tokens#create
6
oauth_revoke POST /oauth/revoke(.:format) doorkeeper/tokens#revoke
7
oauth_introspect POST /oauth/introspect(.:format) doorkeeper/tokens#introspect
8
oauth_applications GET /oauth/applications(.:format) doorkeeper/applications#index
9
POST /oauth/applications(.:format) doorkeeper/applications#create
10
new_oauth_application GET /oauth/applications/new(.:format) doorkeeper/applications#new
11
edit_oauth_application GET /oauth/applications/:id/edit(.:format) doorkeeper/applications#edit
12
oauth_application GET /oauth/applications/:id(.:format) doorkeeper/applications#show
13
PATCH /oauth/applications/:id(.:format) doorkeeper/applications#update
14
PUT /oauth/applications/:id(.:format) doorkeeper/applications#update
15
DELETE /oauth/applications/:id(.:format) doorkeeper/applications#destroy
16
oauth_authorized_applications GET /oauth/authorized_applications(.:format) doorkeeper/authorized_applications#index
17
oauth_authorized_application DELETE /oauth/authorized_applications/:id(.:format) doorkeeper/authorized_applications#destroy
18
oauth_token_info GET /oauth/token/info(.:format) doorkeeper/token_info#show
Copied!
At this point on the guide, we're not going to change the routes. For more information on how to customize them, check out this page on the wiki.
Copy link