yaiam: web sign-in (Web) and admin API reads (Admin)

Web signs the users of a web application in with the code flow and
PKCE: state, nonce and verifier in a short-lived __Host- cookie, the ID
token checked per OIDC Core 3.1.3.7, profile, groups and roles from
UserInfo, and the RP-initiated logout URL. Admin reads users, groups
and group members from yaiam's admin API with a client credentials
token. Toolchain go1.27.4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
terminarandClaude Opus 5.5 committed 2026-11-17 10:54:53 +01:00
1 parent 4bff8798e5
commit a3e8f9bb3b
10 files changed
+1183 -16

No files matched your search

+3
View File
@@ -36,6 +36,9 @@ func (c *Client) StartDevice(ctx context.Context) (*DeviceAuth, error) {
if err != nil {
return nil, err
}
if m.DeviceAuthorizationEndpoint == "" {
return nil, errors.New("yaiam: the provider offers no device sign-in")
}
var out struct {
DeviceCode string `json:"device_code"`
UserCode string `json:"user_code"`