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

[SDK-2529] Add ability to pass custom params to refresh grant and code exchange #507

Merged
merged 1 commit into from
Sep 28, 2021

Conversation

adamjmcgrath
Copy link
Contributor

Description

Sometimes it's useful to pass custom params to a rule or action from the code exchange or RT grant, eg

// For code exchange
await handleCallback(req, res, { authorizationParams: { foo: 'bar' } });
// For refresh grant
await getAccessToken(req, res, { authorizationParams: { foo: 'bar' } });

References

fixes #369

Testing

  • This change adds test coverage for new/changed/fixed functionality

Checklist

  • I have added documentation for new/changed functionality in this PR or in auth0.com/docs
  • All active GitHub checks for tests, formatting, and security are passing
  • The correct base branch is being used, if not main

@adamjmcgrath adamjmcgrath added the review:medium Medium review label Sep 28, 2021
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner September 28, 2021 16:49
@vercel
Copy link

vercel bot commented Sep 28, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/auth0/nextjs-auth0/26Evp3w1HNhzJ9SEjUo61g2kQX4U
✅ Preview: Canceled

@adamjmcgrath adamjmcgrath merged commit e2303f6 into main Sep 28, 2021
@adamjmcgrath adamjmcgrath mentioned this pull request Oct 11, 2021
@evansims evansims deleted the custom-auth-params branch July 5, 2022 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:medium Medium review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow custom parameters when refreshing for access token
2 participants