Class: Doorkeeper::AuthorizationsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Doorkeeper::AuthorizationsController
- Defined in:
- app/controllers/doorkeeper/authorizations_controller.rb
Instance Method Summary collapse
-
#create ⇒ Object
TODO: Handle raise invalid authorization.
- #destroy ⇒ Object
- #new ⇒ Object
Instance Method Details
#create ⇒ Object
TODO: Handle raise invalid authorization
19 20 21 |
# File 'app/controllers/doorkeeper/authorizations_controller.rb', line 19 def create redirect_or_render . end |
#destroy ⇒ Object
23 24 25 |
# File 'app/controllers/doorkeeper/authorizations_controller.rb', line 23 def destroy redirect_or_render .deny end |
#new ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/doorkeeper/authorizations_controller.rb', line 5 def new if pre_auth. if matching_token? || auth = . redirect_to auth.redirect_uri else render :new end else render :error end end |