Improve SSO auth flow
Use replaceState instead of a redirect to strip the loginToken Put user into the same post-auth flows of E2ESetup Skip UIA prompt in this post-auth flow, happy path is a server grace period
This commit is contained in:
+1
-1
@@ -124,7 +124,7 @@ function onTokenLoginCompleted() {
|
|||||||
parsedUrl.search = "";
|
parsedUrl.search = "";
|
||||||
const formatted = url.format(parsedUrl);
|
const formatted = url.format(parsedUrl);
|
||||||
console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`);
|
console.log(`Redirecting to ${formatted} to drop loginToken from queryparams`);
|
||||||
window.location.href = formatted;
|
window.history.replaceState(null, "", formatted);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function loadApp(fragParams: {}) {
|
export async function loadApp(fragParams: {}) {
|
||||||
|
|||||||
Reference in New Issue
Block a user