mirror of
https://github.com/bitwarden/browser
synced 2026-01-03 17:13:47 +00:00
PM-8111 - (1) Cleanup DefaultLoginComponentService (2) Sso Connector now checks client id property instead of reading it from state
This commit is contained in:
@@ -6,10 +6,11 @@ window.addEventListener("load", () => {
|
||||
const code = getQsParam("code");
|
||||
const state = getQsParam("state");
|
||||
const lastpass = getQsParam("lp");
|
||||
const clientId = getQsParam("clientId");
|
||||
|
||||
if (lastpass === "1") {
|
||||
initiateBrowserSso(code, state, true);
|
||||
} else if (state != null && state.includes(":clientId=browser")) {
|
||||
} else if (state != null && clientId == "browser") {
|
||||
initiateBrowserSso(code, state, false);
|
||||
} else {
|
||||
window.location.href = window.location.origin + "/#/sso?code=" + code + "&state=" + state;
|
||||
|
||||
Reference in New Issue
Block a user