I am using auth0-js and want to pass custom parameters via the authorize method. Some documentation e.g. custom parameters indicates you can add parameters and access them in the Universal Login page template. However, if I add these parameters when I get to the page I get an exception saying “Following parameters are not allowed on the /authorize
endpoint: [ext-custom]”. Elsewhere it implies you can use the state to pass parameters but that those parameters are then not accessible in the page template. I am using the latest version of auth0-js (9.28.0)
Hi @alexp1,
The link you shared discusses custom parameters within New Universal Login Page Templates. Page Templates are only supported when using the New Universal Login Experience. You mention you are using auth0-js
, which indicates that you are using the Classic Login Experience in your application. Can you confirm?
Related docs on passing custom parameters:
- Passing Custom Parameters to Auth0 Actions from Applications
- Passing custom parameters with auth0.js authorize
Thanks,
Mary Beth
Hi Mary Beth - we are using the Universal Login.
We upgraded several months ago and it all works fine with auth0-js.
Auth0.js is a client-side library for Auth0. It is recommended for use in conjunction with Universal Login, which should be used whenever possible. Using auth0.js in your SPA makes it easier to do authentication and authorization with Auth0.
Is this not the correct package?
Hi @alexp1,
Can you provide me with the tenant name so I can take a closer look at the page template and try to reproduce this? You can send it to me in a private message.
Thanks,
Mary Beth
Hi @marybeth.hunter . We have upgraded our sdk - we are now using the auth0-spa package - and we can now pass parameters to the authorize endpoint.
Thanks for your help. You pointed us in the right direction. Never saw this upgrade when we moved to the New Universal Login.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.