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

Allow passing extra params to oauth2 authorization_endpoint #349

Closed
rchl opened this issue May 15, 2019 · 0 comments · Fixed by #358
Closed

Allow passing extra params to oauth2 authorization_endpoint #349

rchl opened this issue May 15, 2019 · 0 comments · Fixed by #358

Comments

@rchl
Copy link
Member

rchl commented May 15, 2019

What problem does this feature solve?

I'd want to dynamically pass extra lang param to authentication_endpoint of the oath2 flow.

I can't hardcode it into the scheme options because:

  • it needs to be dynamic based on currently used locale
  • the building of final authorization_endpoint URL is done by concatenating it with ?${queryParams} so it would break that code if I would add ? myself.

What does the proposed changes look like?

The oath2 strategy could have additional option extraQueryParams that would take either a static object or a function(context) { return {p: 1}; }.

This feature request is available on Nuxt community (#c330)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants