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
+1
-1
@@ -153,7 +153,7 @@ func (a *Admin) token(ctx context.Context) (string, error) {
|
||||
// get asks the API for path below the tenant and decodes the answer.
|
||||
// A refused token is fetched again once.
|
||||
func (a *Admin) get(ctx context.Context, path string, out any) error {
|
||||
if err := checkURL("admin API", a.API); err != nil {
|
||||
if err := checkURL("admin API", a.API, a.AllowInsecure); err != nil {
|
||||
return err
|
||||
}
|
||||
if a.Tenant == "" || strings.ContainsAny(a.Tenant, "/?#") {
|
||||
|
||||
Reference in new issue
Block a user