public function Auth0::getLoginUrl in Auth0 Single Sign On 8.2
Build the login URL.
Parameters
array $params Array of authorize parameters to use.:
Return value
string
1 call to Auth0::getLoginUrl()
- Auth0::login in vendor/
auth0/ auth0-php/ src/ Auth0.php - Redirect to the hosted login page for a specific client
File
- vendor/
auth0/ auth0-php/ src/ Auth0.php, line 441
Class
- Auth0
- Class Auth0 Provides access to Auth0 authentication functionality.
Namespace
Auth0\SDKCode
public function getLoginUrl(array $params = []) {
$default_params = [
'scope' => $this->scope,
'audience' => $this->audience,
'response_mode' => $this->responseMode,
'response_type' => $this->responseType,
'redirect_uri' => $this->redirectUri,
];
$auth_params = array_replace($default_params, $params);
$auth_params = array_filter($auth_params);
if (empty($auth_params['state'])) {
$auth_params['state'] = $this->stateHandler
->issue();
}
else {
$this->stateHandler
->store($auth_params['state']);
}
return $this->authentication
->get_authorize_link($auth_params['response_type'], $auth_params['redirect_uri'], null, null, $auth_params);
}