1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-18 01:03:35 +00:00

Modifications made to support SSO in Browser

This commit is contained in:
Matt Smith
2020-08-11 15:25:07 -05:00
parent 679c7780e0
commit 1d0b549123
11 changed files with 163 additions and 17 deletions

15
src/content/sso.ts Normal file
View File

@@ -0,0 +1,15 @@
window.addEventListener("message", function(event) {
if (event.source != window)
return;
console.log(event.source);
if (event.data.type && (event.data.type == "AUTH_RESULT")) {
chrome.runtime.sendMessage({
type: event.data.type,
code: event.data.code,
codeVerifier: event.data.codeVerifier,
referrer: event.source.location.hostname
});
}
}, false)