René's URL Explorer Experiment


Title: Internal login fails with Google `403 app_not_configured_for_user` when another Google account is active · Issue #157 · javaBin/platform · GitHub

Open Graph Title: Internal login fails with Google `403 app_not_configured_for_user` when another Google account is active · Issue #157 · javaBin/platform

X Title: Internal login fails with Google `403 app_not_configured_for_user` when another Google account is active · Issue #157 · javaBin/platform

Description: Problem Apps on the internal Cognito pool (e.g. cupcake/frosting) sign users in through the GoogleSAML identity provider, a Google Workspace SAML app. If the user's browser has a different Google account active, such as a personal Gmail,...

Open Graph Description: Problem Apps on the internal Cognito pool (e.g. cupcake/frosting) sign users in through the GoogleSAML identity provider, a Google Workspace SAML app. If the user's browser has a different Google a...

X Description: Problem Apps on the internal Cognito pool (e.g. cupcake/frosting) sign users in through the GoogleSAML identity provider, a Google Workspace SAML app. If the user's browser has a different Goog...

Opengraph URL: https://github.com/javaBin/platform/issues/157

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Internal login fails with Google `403 app_not_configured_for_user` when another Google account is active","articleBody":"### Problem\n\nApps on the internal Cognito pool (e.g. cupcake/frosting) sign users in through the `GoogleSAML` identity provider, a Google Workspace SAML app. If the user's browser has a different Google account active, such as a personal Gmail, Google uses that account for the SAML request and returns:\n\n> 403 — Error: app_not_configured_for_user\n\nGoogle's error page has no way to switch accounts, so the user is stuck. The only workaround is signing out of Google, or using a private window.\n\n### Why it can't be fixed in the Cognito console\n\n- SAML has no \"choose an account\" parameter. Google always uses the active session.\n- Cognito's `prompt=select_account` on `/oauth2/authorize` is forwarded to IdPs only on **managed login**, not the classic hosted UI ([docs](https://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html)). The internal pool doesn't set `managed_login_version`, so it should be on classic (to confirm: Cognito → User pool → Domain → Branding version).\n- The docs describe forwarding `prompt` as an addition to the IdP's redirect URL, i.e. for OIDC/social providers. I found nothing documenting that Cognito maps it to SAML `ForceAuthn`. Even if it did, Google would re-ask the password for the *same* account rather than offer a choice.\n\n### Proposal: use the Google OIDC provider for the internal pool\n\n`terraform/platform/identity/main.tf` already defines `aws_cognito_identity_provider.internal_google`, but it isn't created because `google_client_id` is empty. Google's OAuth endpoint supports what we need:\n\n- `prompt=select_account` always shows the account chooser, including \"Use another account\".\n- `hd=java.no`, already in `authorize_url`, narrows the chooser to java.no accounts.\n\nSteps:\n\n1. Create the OAuth client in GCP project `javabin-platform`, following `docs/cognito-google-setup.md` §1, and set `google_client_id` / `google_client_secret`.\n2. Add `prompt=select_account` to the provider's `authorize_url`, next to `hd=`. That works on the classic hosted UI. Moving the pool to managed login, so apps can pass `prompt` themselves, is an alternative.\n3. Add `Google` to app clients' `SupportedIdentityProviders`. `app_auth_sync` already includes every IdP on the pool, so this may only need a resync. Decide whether `GoogleSAML` stays as well or is removed.\n4. Enforce the domain server-side. `hd=` is only a UI hint (see the existing TODO). Check that `auth_claims` rejects non-java.no users, or add a check that does.\n\n### Things to check before switching\n\n- **User identities:** OIDC users get a new Cognito identity (`username = sub`), not linked to their existing `GoogleSAML` user. Check whether anything depends on the Cognito username or `sub` staying the same, and whether the old SAML users should be linked or cleaned up.\n- **Login page:** if both IdPs are enabled, the hosted UI shows two buttons. Apps can skip that page by passing `identity_provider=Google` on `/oauth2/authorize`.\n\n### Done when\n\nA user whose browser is signed in to a personal Gmail (and possibly a java.no account too) is shown Google's account chooser at login, picks their java.no account, and is signed in to the app.\n","author":{"url":"https://github.com/chrissearle","@type":"Person","name":"chrissearle"},"datePublished":"2026-10-24T13:03:26Z","url":"https://github.com/javaBin/platform/issues/157"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:dbff33ef-2f0e-e509-ef34-6ab7c8b316b0
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9F68:2A7CD2:1860734:20DA5D6:6B03F6F1
html-safe-nonce666bdb8bffccbfdbd61942de7fd5d734b9f28f4ce7130b885f240ac804085ccd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjY4OjJBN0NEMjoxODYwNzM0OjIwREE1RDY6NkIwM0Y2RjEiLCJ2aXNpdG9yX2lkIjoiMzEzODAzNzYzNTIxODY2NzI0OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacdf9fc5264c93bc8b38faa6f6f01b9a9033a7c3bcfd81c243925273b24fd456b9
hovercard-subject-tagissue:6013223227
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/javaBin/platform/157/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6ffffefbe04cc72671fe753e15d5d85b6a3d100043cdd22d8aa9f74b61b4acb3/javaBin/platform/issues/157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6ffffefbe04cc72671fe753e15d5d85b6a3d100043cdd22d8aa9f74b61b4acb3/javaBin/platform/issues/157
og:image:altProblem Apps on the internal Cognito pool (e.g. cupcake/frosting) sign users in through the GoogleSAML identity provider, a Google Workspace SAML app. If the user's browser has a different Google a...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamechrissearle
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/javaBin/platform git https://github.com/javaBin/platform.git
octolytics-dimension-user_id95047
octolytics-dimension-user_loginjavaBin
octolytics-dimension-repository_id1175354559
octolytics-dimension-repository_nwojavaBin/platform
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1175354559
octolytics-dimension-repository_network_root_nwojavaBin/platform
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/javaBin/platform/issues/157#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FjavaBin%2Fplatform%2Fissues%2F157
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FjavaBin%2Fplatform%2Fissues%2F157
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=javaBin%2Fplatform
Reloadhttps://github.com/javaBin/platform/issues/157
Reloadhttps://github.com/javaBin/platform/issues/157
Reloadhttps://github.com/javaBin/platform/issues/157
javaBinhttps://github.com/javaBin
platformhttps://github.com/javaBin/platform
Codehttps://github.com/javaBin/platform
Issues1 (1)https://github.com/javaBin/platform/issues
Pull requests2 (2)https://github.com/javaBin/platform/pulls
Actionshttps://github.com/javaBin/platform/actions
Projectshttps://github.com/javaBin/platform/projects
Security and qualityhttps://github.com/javaBin/platform/security
Insightshttps://github.com/javaBin/platform/insights
https://github.com/javaBin/platform
New issuehttps://github.com/login?return_to=https://github.com/javaBin/platform/issues/157
New issuehttps://github.com/login?return_to=https://github.com/javaBin/platform/issues/157
Internal login fails with Google 403 app_not_configured_for_user when another Google account is activehttps://github.com/javaBin/platform/issues/157#top
https://github.com/Alexanderamiri
https://github.com/chrissearle
chrissearlehttps://github.com/chrissearle
on Oct 24, 2026https://github.com/javaBin/platform/issues/157#issue-6013223227
docshttps://docs.aws.amazon.com/cognito/latest/developerguide/authorization-endpoint.html
chrissearlehttps://github.com/chrissearle
Alexanderamirihttps://github.com/Alexanderamiri
on Oct 24, 2026https://github.com/javaBin/platform/issues/157#event-34129416173
Alexanderamirihttps://github.com/Alexanderamiri
on Oct 24, 2026https://github.com/javaBin/platform/issues/157#event-34132336501
fix(identity): refuse user-admin scope on internal clients and alert …https://github.com/javaBin/platform/commit/6b90c3eddb91602fa4d60fb01a05127155444630
6b90c3ehttps://github.com/javaBin/platform/commit/6b90c3eddb91602fa4d60fb01a05127155444630
feat(auth): gated Google OIDC IdP, auth-status, URL validation and au…https://github.com/javaBin/platform/commit/8359c32b569ce8a462f907d03218969fecf734fe
8359c32https://github.com/javaBin/platform/commit/8359c32b569ce8a462f907d03218969fecf734fe
fix(identity): lock down the internal Cognito pool (#166)https://github.com/javaBin/platform/commit/663d247d2d7fed65f71a6a9be03dee055ac9516d
#166https://github.com/javaBin/platform/pull/166
663d247https://github.com/javaBin/platform/commit/663d247d2d7fed65f71a6a9be03dee055ac9516d
feat(auth): gated Google OIDC IdP, auth-status, URL validation and au…https://github.com/javaBin/platform/commit/92194006da07f3f68d4672ab508f7c0257b6996a
9219400https://github.com/javaBin/platform/commit/92194006da07f3f68d4672ab508f7c0257b6996a
feat(auth): gated Google OIDC IdP, auth-status, URL validation and au…https://github.com/javaBin/platform/commit/fe53bdc506f8c564ff322e80020fb772a28d2086
fe53bdchttps://github.com/javaBin/platform/commit/fe53bdc506f8c564ff322e80020fb772a28d2086
feat(identity): managed-login branding per app client and prompt=sele…https://github.com/javaBin/platform/commit/140f2cedf6e81b8082627947e35371ba9888e3aa
140f2cehttps://github.com/javaBin/platform/commit/140f2cedf6e81b8082627947e35371ba9888e3aa
feat(identity): switch the internal pool domain to managed login (#173)https://github.com/javaBin/platform/commit/d87a3f701afd88efd07c2f2222b38dc328a78b11
#173https://github.com/javaBin/platform/pull/173
d87a3f7https://github.com/javaBin/platform/commit/d87a3f701afd88efd07c2f2222b38dc328a78b11
feat(identity): cut the internal pool over from GoogleSAML to Google (#…https://github.com/javaBin/platform/commit/ff8252237b4ee63129073e9047faa9853bdd322d
#…https://github.com/javaBin/platform/pull/175
ff82522https://github.com/javaBin/platform/commit/ff8252237b4ee63129073e9047faa9853bdd322d
Sign up for freehttps://github.com/signup?return_to=https://github.com/javaBin/platform/issues/157
Sign in to commenthttps://github.com/login?return_to=https://github.com/javaBin/platform/issues/157
Alexanderamirihttps://github.com/Alexanderamiri
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.