1
0
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:
Jared Snider
2024-09-30 16:04:04 -04:00
parent 04fa618ea8
commit 8469e3541a
2 changed files with 6 additions and 13 deletions

View File

@@ -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;