mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 16:09:39 +00:00
* fix(oauth): show the account chooser on Google/Microsoft login Without `prompt=select_account`, Google and Microsoft silently reuse the single active browser session, so a user with more than one account has no way to pick which one to sign in with. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196aV8v36ukoQcD7L2scvmH * chore: pin ee ref for the oauth login extra_params fix Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196aV8v36ukoQcD7L2scvmH * fix(oauth): only ask for the account chooser on an explicit login click The login page now sends `user_initiated=true` when someone clicks a provider button, and the backend applies the provider's `extra_params` only for those requests. Someone whose browser holds a single Google session whose email is already registered under a different login type hits "an user with the email associated to this login exists but with a different login type" and, with no account chooser, has no way to offer a different account. The chooser belongs on that click. It does not belong on the `auto_login_provider` redirect, whose whole purpose is to sign a public-app or approval-page visitor in without interaction. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196aV8v36ukoQcD7L2scvmH * fix(oauth): make the account chooser the default, not the opt-in The login page now flags only the `auto_login_provider` redirect, with `auto=true`; every other login — a click on a provider button, or the endpoint opened as a plain URL — gets the provider's extra params. `/api/oauth/login/*` is whitelisted in `public_app_layer` and reachable directly, so an opt-in flag would silently drop the account chooser for every caller that is not our own button. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0196aV8v36ukoQcD7L2scvmH * chore: update ee-repo-ref to f5d6b6b8dd00b0141308337ac97f4685781f2b1c This commit updates the EE repository reference after PR #776 was merged in windmill-ee-private. Previous ee-repo-ref: 5684bb0f63dce08d6ce9ab0183072c8b4fce4b2e New ee-repo-ref: f5d6b6b8dd00b0141308337ac97f4685781f2b1c Automated by sync-ee-ref workflow. --------- Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
39 lines
1.3 KiB
JSON
39 lines
1.3 KiB
JSON
{
|
|
"github": {
|
|
"auth_url": "https://github.com/login/oauth/authorize",
|
|
"token_url": "https://github.com/login/oauth/access_token",
|
|
"userinfo_url": "https://api.github.com/user",
|
|
"scopes": ["user:email"]
|
|
},
|
|
"gitlab": {
|
|
"auth_url": "https://gitlab.com/oauth/authorize",
|
|
"token_url": "https://gitlab.com/oauth/token",
|
|
"userinfo_url": "https://gitlab.com/api/v4/user",
|
|
"scopes": ["read_user"]
|
|
},
|
|
"google": {
|
|
"auth_url": "https://accounts.google.com/o/oauth2/v2/auth",
|
|
"token_url": "https://oauth2.googleapis.com/token",
|
|
"userinfo_url": "https://www.googleapis.com/oauth2/v1/userinfo?alt=json",
|
|
"scopes": ["https://www.googleapis.com/auth/userinfo.email"],
|
|
"extra_params": {
|
|
"prompt": "select_account"
|
|
}
|
|
},
|
|
"microsoft": {
|
|
"auth_url": "https://login.microsoftonline.com/common/oauth2/v2.0/authorize",
|
|
"token_url": "https://login.microsoftonline.com/common/oauth2/v2.0/token",
|
|
"userinfo_url": "https://graph.microsoft.com/oidc/userinfo",
|
|
"scopes": ["openid", "profile", "email"],
|
|
"extra_params": {
|
|
"prompt": "select_account"
|
|
}
|
|
},
|
|
"jumpcloud": {
|
|
"auth_url": "https://oauth.id.jumpcloud.com/oauth2/auth",
|
|
"token_url": "https://oauth.id.jumpcloud.com/oauth2/token",
|
|
"userinfo_url": "https://oauth.id.jumpcloud.com/userinfo",
|
|
"scopes": ["email"]
|
|
}
|
|
}
|