Hi There!
I’m very new to auth0 so please be a little patient to me.
I am using laravel 8.9 and the auth0-laravel sdk.
So it’s quite nice and working well.
Now my challenge is:
When a user register/signup, i want to pass an addtional paramater to the /authorize connection.
Here it is called “host”
$authorize_params = [
'scope' => 'openid profile email',
// Use the key below to get an access token for your API.
// 'audience' => config('laravel-auth0.api_identifier'),
// action: 'signup' or 'login' for classuc
'screen_hint' => 'signup',
'prompt' => 'login',
'host' => 'hereissomemoreinformation',
];
return App::make('auth0')->login(null, null, $authorize_params);
When the user signs up, and the parameter is set, i want to store the content of this parameter in the database in user_metadata[host] (for example)
i see in the network traffic that this paremter is scucessfull transfered to the /authorization endpoint
https://[myhost]/authorize?scope=openid%20profile%20email&response_mode=query&response_type=code&redirect_uri=http%3A%2F%2Fredirecturi%2Fauth0%2Fcallback&screen_hint=signup&prompt=login&host=hereissomemoreinformation&state=.....
The parameter will only be provided during signup
i have no plan how this can be archieved?
it will be great if you can help me