WIP redirection
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 3m59s
All checks were successful
Build and Push to Registry / build-and-push (push) Successful in 3m59s
This commit is contained in:
parent
a8bdb18cc4
commit
bb44128e12
@ -50,8 +50,9 @@ export default function StepEmail(props: IProps) {
|
||||
}/authorized-client&scope=openid,profile&response_type=code`,
|
||||
);
|
||||
*/
|
||||
const redirectUri = 'http://local.4nkweb.com:3000/authorized-client';
|
||||
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]);
|
||||
|
||||
|
@ -216,8 +216,8 @@ export default function LoginCallBack() {
|
||||
// TODO: review
|
||||
// HACK: If start with http://local.lecoffreio.4nkweb:3000/authorized-client
|
||||
// Replace with http://localhost:3000/authorized-client
|
||||
if (window.location.href.startsWith('http://local.lecoffreio.4nkweb:3000/authorized-client')) {
|
||||
window.location.href = window.location.href.replace('http://local.lecoffreio.4nkweb:3000/authorized-client', 'http://localhost:3000/authorized-client');
|
||||
if (window.location.href.startsWith('http://local.4nkweb.com')) {
|
||||
window.location.href = window.location.href.replace('http://local.4nkweb.com:3000/authorized-client', 'http://localhost:3000/authorized-client');
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user