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
+2
-2
@@ -55,11 +55,11 @@ func (c *Client) StartDevice(ctx context.Context) (*DeviceAuth, error) {
|
||||
return nil, errors.New("yaiam: device_authorization: incomplete answer")
|
||||
}
|
||||
// The user opens these pages: only ones of the provider's kind.
|
||||
if err := checkURL("verification_uri", out.VerificationURI); err != nil {
|
||||
if err := checkURL("verification_uri", out.VerificationURI, c.AllowInsecure); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if out.VerificationURIComplete != "" {
|
||||
if err := checkURL("verification_uri_complete", out.VerificationURIComplete); err != nil {
|
||||
if err := checkURL("verification_uri_complete", out.VerificationURIComplete, c.AllowInsecure); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user