Safari SSO login fails when configured via granted browser set-sso, but works when configured via granted browser set
#962
Unanswered
ryodocx
asked this question in
Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Issue Description
When Safari is configured using
granted browser set-sso,granted sso loginfails before the AWS device authorization page is displayed.Safari immediately shows the following error:
I investigated the issue and found that the behavior differs depending on how Safari is configured.
When Safari is configured via
granted browser set, SSO login works correctly.The generated AWS device authorization URL is valid, and the issue appears to be specific to how Safari is launched during the SSO flow.
Expected Behavior
Configuring Safari via either:
granted browser setor
should allow
granted sso loginto successfully open the AWS device authorization page. Both commands should provide equivalent Safari behavior during SSO login.Actual Behavior
When Safari is configured using:
running:
immediately opens Safari displaying:
The AWS device authorization page never opens.
When Safari is configured using:
granted browser setSSO login works as expected.
Reproduction Steps
Configure Safari as the browser
granted sso login -> The AWS device authorization page opens successfully.
Configure Safari as the SSO browser
granted sso login -> fail
Safari immediately displays:
Granted Logs
No response
Granted Version
OS Version Information
macOS 26.5.2
Minimal Granted & AWS Config Configuration
Generated by
granted browser set(works):Generated by
granted browser set-sso(fails):Additional Relevant Configuration
The generated AWS device authorization URL is valid. Opening it using Launch Services works correctly:
open "https://<aws-device-auth-url>"The same URL also works when pasted directly into Safari.
Launching Safari directly reproduces the same error:
/Applications/Safari.app/Contents/MacOS/Safari "https://<aws-device-auth-url>"As a workaround, replacing
CustomSSOBrowserPathwith the following allowsgranted sso loginto work correctly:This makes me wonder whether
granted browser setandgranted browser set-ssointentionally use different launch mechanisms for Safari. If not, I'd be happy to open a GitHub issue after confirming this behavior.I acknowledge that:
```) on separate lines.All reactions