Skip to content

Commit

Permalink
Merge pull request #113 from jmortlock/master
Browse files Browse the repository at this point in the history
API mode will not define the verify_authenticity_token action
  • Loading branch information
nbulaj authored May 25, 2020
2 parents a97bf0d + c50a59a commit e8ce8fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## Unreleased

- [#114] Fix user_info endpoint when used in api mode

## v1.7.2 (2020-05-20)

### Changes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
module Doorkeeper
module OpenidConnect
class UserinfoController < ::Doorkeeper::ApplicationController
skip_before_action :verify_authenticity_token
unless Doorkeeper.config.api_only
skip_before_action :verify_authenticity_token
end
before_action -> { doorkeeper_authorize! :openid }

def show
Expand Down

0 comments on commit e8ce8fa

Please sign in to comment.