Skip to content

Commit

Permalink
add response_mode_matches for id_token, and id_token token response_type
Browse files Browse the repository at this point in the history
  • Loading branch information
linhdangduy committed Feb 28, 2021
1 parent d841188 commit 4e67aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doorkeeper-openid_connect.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = '>= 2.4'

spec.add_runtime_dependency 'doorkeeper', '>= 5.2', '< 5.5'
spec.add_runtime_dependency 'doorkeeper', '>= 5.5', '< 5.6'
spec.add_runtime_dependency 'json-jwt', '>= 1.11.0'

spec.add_development_dependency 'conventional-changelog', '~> 1.2'
Expand Down
2 changes: 2 additions & 0 deletions lib/doorkeeper/openid_connect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ def self.signing_key_normalized
Doorkeeper::GrantFlow.register(
:id_token,
response_type_matches: 'id_token',
response_mode_matches: %w[fragment form_post],
response_type_strategy: Doorkeeper::OpenidConnect::IdToken,
)

Doorkeeper::GrantFlow.register(
'id_token token',
response_type_matches: 'id_token token',
response_mode_matches: %w[fragment form_post],
response_type_strategy: Doorkeeper::OpenidConnect::IdTokenToken,
)

Expand Down

0 comments on commit 4e67aff

Please sign in to comment.