Class: Devise::Oauth::AccessTokensController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Devise::Oauth::AccessTokensController
show all
- Includes:
- Helpers
- Defined in:
- app/controllers/devise/oauth/access_tokens_controller.rb
Constant Summary
collapse
- @@flows =
{
authorization_code: [
:find_auth_by_code,
:normalize_scope,
:access_blocked?,
:create_token_from_auth
],
password: [
:authenticate_resource_owner,
:normalize_scope,
:access_blocked?,
:create_token
],
refresh_token: [
:find_refresh_token,
:normalize_scope,
:access_blocked?,
:create_token_from_refresh
]
}
Instance Method Summary
collapse
Methods included from Helpers
#access_blocked?, #client_blocked?, #normalize_scope
Instance Method Details
#create ⇒ Object
38
39
40
41
|
# File 'app/controllers/devise/oauth/access_tokens_controller.rb', line 38
def create
render json: @token_response
@authorization.used! if @authorization
end
|
#destroy ⇒ Object
43
44
|
# File 'app/controllers/devise/oauth/access_tokens_controller.rb', line 43
def destroy
end
|