I am creating a new project in Laravel8.
I installed the Auth0 SDK into Laravel with the following command.
$ composer require auth0/login
Then I set the “Allowed Callback URLs” of Auth0 as follows.
http://localhost:8080/auth0/callback
I wrote the code for the login part of Laravel as follows.
public function login()
{
$authorize_params = [
'scope' => 'openid email email_verified',
// Use the key below to get an Access Token for your API.
// 'audience' => config('laravel-auth0.api_identifier'),
];
return app()->make('auth0')->login(null, null, $authorize_params);
}
When this code is executed, the parameter of “redirect_url” will be “http://localhost/auth0/callback”.
The port number will be erased by itself.
Why is this?