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
@@ -55,7 +55,8 @@ return without the state check. Client secrets (`Web`, `Admin`) go only
|
||||
in the Authorization header to the token endpoint. Servers check tokens
|
||||
with yaiam's `pkg/httpauth`. Never log a token or put one into an error, never follow
|
||||
a redirect with one, never accept an endpoint that is not https (http
|
||||
only on loopback), and never send a stored token to another issuer or
|
||||
only on loopback, or anywhere with the explicit `AllowInsecure` of a test
|
||||
installation), and never send a stored token to another issuer or
|
||||
client than the one it came from. Tests use a fake provider
|
||||
(`httptest`); the end-to-end test against a real yaiam-authd is in
|
||||
yaiam (`internal/oidcprovider/devicelogin_test.go`).
|
||||
|
||||
Reference in new issue
Block a user