Merge branch 'develop' of github.com:thecodingmachine/workadventure

This commit is contained in:
_Bastler
2021-09-30 18:58:02 +02:00
3 changed files with 10 additions and 9 deletions
@@ -31,7 +31,7 @@ export class AuthenticateController extends BaseController {
});
try {
const { nonce, state, playUri } = parse(req.getQuery());
const { nonce, state, playUri, redirect } = parse(req.getQuery());
if (!state || !nonce) {
throw "missing state and nonce URL parameters";
}
@@ -39,7 +39,8 @@ export class AuthenticateController extends BaseController {
const loginUri = await openIDClient.authorizationUrl(
state as string,
nonce as string,
playUri as string | undefined
playUri as string | undefined,
redirect as string | undefined
);
res.writeStatus("302");
res.writeHeader("Location", loginUri);