Merge branch 'master' into develop
Signed-off-by: Gregoire Parant <g.parant@thecodingmachine.com> # Conflicts: # front/src/Components/Menu/Menu.svelte # front/src/Components/Menu/ProfileSubMenu.svelte # front/src/Components/Menu/SettingsSubMenu.svelte # front/src/Connexion/ConnectionManager.ts # front/src/Stores/MediaStore.ts # front/src/Stores/MenuStore.ts # front/style/TextGlobalMessageSvelte-Style.scss # front/style/style.scss
This commit is contained in:
commit
3a3e5d5f3b
5 changed files with 16 additions and 9 deletions
2
front/dist/.htaccess
vendored
2
front/dist/.htaccess
vendored
|
@ -22,3 +22,5 @@ RewriteBase /
|
|||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule "^[_@]/" "/index.html" [L]
|
||||
RewriteRule "^register/" "/index.html" [L]
|
||||
RewriteRule "^login" "/index.html" [L]
|
||||
RewriteRule "^jwt/" "/index.html" [L]
|
||||
|
|
|
@ -45,7 +45,7 @@ class ConnectionManager {
|
|||
loginSceneVisibleIframeStore.set(false);
|
||||
return null;
|
||||
}
|
||||
const redirectUrl = `${this._currentRoom.iframeAuthentication}?state=${state}&nonce=${nonce}`;
|
||||
const redirectUrl = `${this._currentRoom.iframeAuthentication}?state=${state}&nonce=${nonce}&playUri=${this._currentRoom.key}`;
|
||||
window.location.assign(redirectUrl);
|
||||
return redirectUrl;
|
||||
}
|
||||
|
@ -76,10 +76,9 @@ class ConnectionManager {
|
|||
this.connexionType = connexionType;
|
||||
this._currentRoom = null;
|
||||
if (connexionType === GameConnexionTypes.login) {
|
||||
//TODO clear all cash and redirect on login scene (iframe)
|
||||
localUserStore.setAuthToken(null);
|
||||
this._currentRoom = await Room.createRoom(new URL(localUserStore.getLastRoomUrl()));
|
||||
urlManager.pushRoomIdToUrl(this._currentRoom);
|
||||
this.loadOpenIDScreen();
|
||||
return Promise.reject(new Error("You will be redirect on login page"));
|
||||
} else if (connexionType === GameConnexionTypes.jwt) {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const code = urlParams.get("code");
|
||||
|
@ -91,13 +90,14 @@ class ConnectionManager {
|
|||
throw "No Auth code provided";
|
||||
}
|
||||
localUserStore.setCode(code);
|
||||
this._currentRoom = await Room.createRoom(new URL(localUserStore.getLastRoomUrl()));
|
||||
try {
|
||||
await this.checkAuthUserConnexion();
|
||||
} catch (err) {
|
||||
console.error(err);
|
||||
this.loadOpenIDScreen();
|
||||
return Promise.reject(new Error("You will be redirect on login page"));
|
||||
}
|
||||
this._currentRoom = await Room.createRoom(new URL(localUserStore.getLastRoomUrl()));
|
||||
urlManager.pushRoomIdToUrl(this._currentRoom);
|
||||
} else if (connexionType === GameConnexionTypes.register) {
|
||||
//@deprecated
|
||||
|
|
|
@ -1090,7 +1090,7 @@ div.is-silent {
|
|||
border-radius: 15px 15px 15px 15px;
|
||||
max-height: 20%;
|
||||
transition: right 350ms;
|
||||
right: -20vw;
|
||||
right: -300px;
|
||||
background-color: black;
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue