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

Connection should support authParamsMap #14

Open
nicosabena opened this issue Apr 24, 2017 · 1 comment
Open

Connection should support authParamsMap #14

nicosabena opened this issue Apr 24, 2017 · 1 comment

Comments

@nicosabena
Copy link

In addition to #12, it would be good to directly support the authParamsMap options in the connection definition.

The authParamsMap provides a way to map parameters received in the authentication call into the authorization call sent to the external identity provider. For example:

{
  "options" : { 
    "authParamsMap" : {
      "foo": "bar"
    }
}      

Now if I do tenant.auth0.com/authorize?....&bar=something, the value will be mapped into a call like idp.com/authorize?....&foo=something.

@nicosabena
Copy link
Author

Update: Auth0 whitelists the /authorize call, so values on the right side (i.e. from the auth0domain/authorize call) can only be:

'force_login', 'login_hint', 'whr', 'wauth', 'hd', 'access_type', 'prompt', 'approval_prompt', 'display', 'include_granted_scopes', 'resource'

(code here)

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

No branches or pull requests

1 participant