Skip to content

Commit

Permalink
Fix the invalid_code_challenge_method.zero message
Browse files Browse the repository at this point in the history
  • Loading branch information
ransombriggs committed Nov 4, 2024
1 parent d244e69 commit 7e2bf4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ en:
access_denied: 'The resource owner or authorization server denied the request.'
invalid_scope: 'The requested scope is invalid, unknown, or malformed.'
invalid_code_challenge_method:
zero: 'The authorization server does not support PKCE as there is no accepted code_challenge_method'
zero: 'The authorization server does not support PKCE as there are no accepted code_challenge_method values.'
one: 'The code_challenge_method must be %{challenge_methods}.'
other: 'The code_challenge_method must be one of %{challenge_methods}.'
server_error: 'The authorization server encountered an unexpected condition which prevented it from fulfilling the request.'
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/oauth/pre_authorization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@

expect(pre_auth).to_not be_authorizable
expect(pre_auth.error_response.description).to eq(
"The authorization server does not support PKCE as there is no accepted code_challenge_method"
"The authorization server does not support PKCE as there are no accepted code_challenge_method values."
)
end
end
Expand Down

0 comments on commit 7e2bf4b

Please sign in to comment.