Custom url params in forms

Can i somehow pass through url variables from login/register screen to a form that is prompted in onExecutePostLogin? i look at various posts and can not even get the “ext-*” param resolved. I am using express-open-id like:

	app.get('/login', (req, res) =>
		res.oidc.login({
			returnTo: '/onboarding',
			authorizationParams: {
				redirect_uri: `${baseUrl}/callback`,
				"ext-test": 'test'
			},
		}),
	)

if i add this to my universal login template (/api/v2/branding/templates/universal-login): Value of the ext-test parameter:{{ transaction.params.ext-test }} its not showing up ?!

Is it not possible to pass through a custom parameter to a form prompt?

Sorry i figured it out - i had also authorizationParams partly configured in ConfigParams and somehow the merge removed the “ext-test”. this works:

	app.get('/login', (req, res) =>
		res.oidc.login({
			returnTo: '/onboarding',
			authorizationParams: {
				response_type: 'code',
				scope: 'openid profile email',
				redirect_uri: `${baseUrl}/callback`,
				"ext-test": 'test'
			},
		}),
	)
1 Like

Hi @admin76

Welcome to the Auth0 Community!

I’m glad you found the solution, and thank you for sharing it with the rest of the community!

Thanks
Dawid