lib/rodauth/features/oauth_pkce.rb in rodauth-oauth-0.10.2 vs lib/rodauth/features/oauth_pkce.rb in rodauth-oauth-0.10.3
- old
+ new
@@ -27,11 +27,11 @@
return true if use_oauth_pkce? && param_or_nil("code_verifier")
super
end
- def validate_oauth_grant_params
+ def validate_authorize_params
validate_pkce_challenge_params if use_oauth_pkce?
super
end
@@ -45,10 +45,10 @@
end
super
end
- def create_oauth_token_from_authorization_code(oauth_grant, create_params)
+ def create_oauth_token_from_authorization_code(oauth_grant, create_params, *)
if use_oauth_pkce?
if oauth_grant[oauth_grants_code_challenge_column]
code_verifier = param_or_nil("code_verifier")
redirect_response_error("invalid_request") unless code_verifier && check_valid_grant_challenge?(oauth_grant, code_verifier)