feat(yaiam): web sign-in at any OIDC provider behind another name
Web.PublicIssuer sends the browser to the provider's endpoints on a public origin while the server keeps Issuer (container networks); the callback's iss may name either. Client.AllowInsecure accepts plain http off loopback for test installations on a closed network. email_verified counts only as the JSON boolean true; a string no longer fails the sign-in. First consumer: yaemp. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
538a6c8ae6
commit
376ae3c970
8 files changed
+159
-17
No files matched your search
@@ -170,6 +170,15 @@ out, _ := web.LogoutURL(ctx, u.IDToken)
|
||||
and roles come from UserInfo, which must name the same subject.
|
||||
- The application keeps its own session and its own data under
|
||||
`Subject` -- it stays when the user is renamed.
|
||||
- Any OpenID Connect provider works, not only yaiam: set `Scopes` to
|
||||
what it offers (e.g. `openid email profile`; the default asks for
|
||||
yaiam's groups, roles and attributes). `EmailVerified` is true only
|
||||
for the JSON boolean `true` (some providers send the string).
|
||||
- `PublicIssuer`: when the application reaches the provider under
|
||||
another name than the browser does (a container network), the browser
|
||||
is sent to the endpoints on the public origin; the server keeps
|
||||
`Issuer`. `AllowInsecure` (on `Client`) accepts plain http off
|
||||
loopback, for a test installation on a closed network only.
|
||||
|
||||
`Admin` reads a tenant's users, groups and group members from yaiam's
|
||||
admin API with a service client's token (client credentials, cached
|
||||
|
||||
Reference in new issue
Block a user