Class: Oauth2Provider::AccessesController
Instance Method Summary
collapse
#_oauth_provider_admin?
#_oauth_provider_authenticate, #_oauth_provider_json_body, #_oauth_provider_normalize_token, #api_request, #json?, #oauth_authorized, #session_auth
Instance Method Details
#block ⇒ Object
12
13
14
15
|
# File 'app/controllers/oauth2_provider/accesses_controller.rb', line 12
def block
@access.block!
redirect_to oauth2_provider_engine.oauth2_provider_accesses_url
end
|
#index ⇒ Object
5
6
7
|
# File 'app/controllers/oauth2_provider/accesses_controller.rb', line 5
def index
@accesses = Oauth2Provider::OauthAccess.to_adapter.find_all(resource_owner_uri: user_url(current_user))
end
|
#show ⇒ Object
9
10
|
# File 'app/controllers/oauth2_provider/accesses_controller.rb', line 9
def show
end
|
#unblock ⇒ Object
17
18
19
20
|
# File 'app/controllers/oauth2_provider/accesses_controller.rb', line 17
def unblock
@access.unblock!
redirect_to oauth2_provider_engine.oauth2_provider_accesses_url
end
|