deploy
This commit is contained in:
@@ -62,7 +62,10 @@ final class KeycloakAuth
|
||||
return $this->allowDesktopPreview() && isset($_GET[$previewKey]);
|
||||
}
|
||||
|
||||
public function loginUrl(): ?string
|
||||
/**
|
||||
* @param array<string, string> $authorizeOverrides
|
||||
*/
|
||||
public function loginUrl(array $authorizeOverrides = []): ?string
|
||||
{
|
||||
if (!$this->isConfigured()) {
|
||||
return null;
|
||||
@@ -70,6 +73,7 @@ final class KeycloakAuth
|
||||
|
||||
$state = bin2hex(random_bytes(16));
|
||||
$_SESSION['keycloak_oauth_state'] = $state;
|
||||
$_SESSION['keycloak_oauth_mode'] = (string) ($authorizeOverrides['prompt'] ?? '') === 'none' ? 'silent' : 'interactive';
|
||||
|
||||
$params = array_merge(
|
||||
[
|
||||
@@ -83,6 +87,7 @@ final class KeycloakAuth
|
||||
? $this->config['extra_authorize_params']
|
||||
: []
|
||||
);
|
||||
$params = array_merge($params, $authorizeOverrides);
|
||||
|
||||
return rtrim($this->baseUrl(), '/')
|
||||
. '/realms/' . rawurlencode($this->realm())
|
||||
|
||||
Reference in New Issue
Block a user