WIP redirection
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 3m59s

This commit is contained in:
Sosthene 2025-09-11 12:45:38 +02:00
parent a8bdb18cc4
commit bb44128e12
2 changed files with 4 additions and 3 deletions

View File

@ -50,8 +50,9 @@ export default function StepEmail(props: IProps) {
}/authorized-client&scope=openid,profile&response_type=code`, }/authorized-client&scope=openid,profile&response_type=code`,
); );
*/ */
const redirectUri = 'http://local.4nkweb.com:3000/authorized-client';
router.push( router.push(
`https://qual-connexion.idnot.fr/user/IdPOAuth2/authorize/idnot_idp_v1?client_id=B3CE56353EDB15A9&redirect_uri=http://local.lecoffreio.4nkweb:3000/authorized-client&scope=openid,profile&response_type=code`, `https://qual-connexion.idnot.fr/user/IdPOAuth2/authorize/idnot_idp_v1?client_id=B3CE56353EDB15A9&redirect_uri=${redirectUri}&scope=openid,profile&response_type=code`,
); );
}, [router]); }, [router]);

View File

@ -216,8 +216,8 @@ export default function LoginCallBack() {
// TODO: review // TODO: review
// HACK: If start with http://local.lecoffreio.4nkweb:3000/authorized-client // HACK: If start with http://local.lecoffreio.4nkweb:3000/authorized-client
// Replace with http://localhost:3000/authorized-client // Replace with http://localhost:3000/authorized-client
if (window.location.href.startsWith('http://local.lecoffreio.4nkweb:3000/authorized-client')) { if (window.location.href.startsWith('http://local.4nkweb.com')) {
window.location.href = window.location.href.replace('http://local.lecoffreio.4nkweb:3000/authorized-client', 'http://localhost:3000/authorized-client'); window.location.href = window.location.href.replace('http://local.4nkweb.com:3000/authorized-client', 'http://localhost:3000/authorized-client');
return; return;
} }