Skip to content

Commit

Permalink
Fixing SAML redirect handling
Browse files Browse the repository at this point in the history
  • Loading branch information
pyro2927 committed Sep 21, 2024
1 parent 908b7e7 commit 2cb47cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions containerize.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ function listener(details) {

return {};
}

function accountNameListener(details) {
// Intercept our response
let filter = browser.webRequest.filterResponseData(details.requestId);
Expand Down Expand Up @@ -208,17 +209,17 @@ function accountNameListener(details) {
}

return {};

}

async function samlListener(details) {
// check to make sure we only handle this on redirects
if (details.statusCode != 302) {
return {};
}

async function process(result) {
onGot(result);

if (details.statusCode != 302) {
return {};
}

const setCookie = details.responseHeaders.find(header => header.name == "set-cookie");
const redirectUrl = details.responseHeaders.find(header => header.name == "location").value;

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"manifest_version": 2,
"name": "AWS SSO Containers",
"version": "1.10",
"version": "1.11",
"description": "Automatically places AWS SSO calls into containers.",
"browser_specific_settings": {
"gecko": {
Expand Down

0 comments on commit 2cb47cc

Please sign in to comment.