Mise en place de l'authentification Keycloak
This commit is contained in:
13
ChessCubing.App/wwwroot/appsettings.json
Normal file
13
ChessCubing.App/wwwroot/appsettings.json
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"Keycloak": {
|
||||
"Authority": "/auth/realms/chesscubing",
|
||||
"ClientId": "chesscubing-web",
|
||||
"ResponseType": "code",
|
||||
"PostLogoutRedirectUri": "/",
|
||||
"DefaultScopes": [
|
||||
"openid",
|
||||
"profile",
|
||||
"email"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -146,14 +146,16 @@
|
||||
}
|
||||
},
|
||||
|
||||
clearMatchState(storageKey) {
|
||||
clearMatchState(storageKey, windowNameKey) {
|
||||
try {
|
||||
window.localStorage.removeItem(storageKey);
|
||||
} catch {
|
||||
}
|
||||
|
||||
try {
|
||||
window.name = "";
|
||||
if (window.name && window.name.startsWith(windowNameKey)) {
|
||||
window.name = "";
|
||||
}
|
||||
} catch {
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user