Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated token exchange endpoint to support both client_secret and cod… #7

Merged
merged 4 commits into from
Oct 7, 2024

Conversation

youssef-deriv
Copy link
Contributor

Add support for code verifier in the toke exchange endpoint.

@@ -282,17 +282,22 @@ Exchanges the authorization code with Hydra service for access and ID tokens.

=cut

method exchange_token ($code, $client_id, $client_secret, $redirect_uri) {
method exchange_token ($args) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion.

Suggested change
method exchange_token ($args) {
method exchange_token ($payload) {
my $exchange_payload =
{ grant_type => 'authorization_code',
$payload->%*
}

@mukesh-deriv mukesh-deriv merged commit 867fda7 into deriv-com:master Oct 7, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants