Skip to content

Commit

Permalink
Controllers inherit Doorkeeper::AppliactionMetalController
Browse files Browse the repository at this point in the history
This closes #169.
  • Loading branch information
sato11 committed Jul 6, 2022
1 parent 9eb9012 commit 1a06544
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

module Doorkeeper
module OpenidConnect
class DiscoveryController < ::Doorkeeper::ApplicationController
class DiscoveryController < ::Doorkeeper::ApplicationMetalController
include Doorkeeper::Helpers::Controller

WEBFINGER_RELATION = 'http://openid.net/specs/connect/1.0/issuer'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

module Doorkeeper
module OpenidConnect
class UserinfoController < ::Doorkeeper::ApplicationController
unless Doorkeeper.configuration.api_only
skip_before_action :verify_authenticity_token
end
class UserinfoController < ::Doorkeeper::ApplicationMetalController
before_action -> { doorkeeper_authorize! :openid }

def show
Expand Down

0 comments on commit 1a06544

Please sign in to comment.