Commit Graph
8 Commits
Author SHA1 Message Date
terminarandClaude Opus 5.5 c2a5e3928a feat(yaiam): refresh and revoke a web sign-in's tokens
Web.Refresh trades the refresh token from an offline_access sign-in for
the next access token, authenticating a confidential client with its
secret (Client.Refresh only sends client_id). Web.Revoke ends the refresh
and access token at sign-out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 00:03:17 +01:00
terminarandClaude Opus 5.5 560a1ead8a feat(yaiam): token exchange for a user's token at another service (RFC 8693)
Exchanger trades a user's access token, as a confidential client with
its secret in a Basic header, for one at another yaiam client (yaiam
ADR-0045): Exchange(ctx, subject, audience, scopes...) and Revoke for
the end of an agent's job. Only access tokens are asked for and taken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-21 19:27:57 +01:00
terminarandClaude Opus 5.5 76543b23a0 fix(yaiam): check the sign-in cookie and state before discovery
A callback that belongs to no sign-in of this browser is now
ErrSignInState without contacting the provider (before, an unreachable
provider turned it into a discovery error).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 17:35:15 +01:00
terminarandClaude Opus 5.5 376ae3c970 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>
2026-11-20 17:32:32 +01:00
terminarandClaude Opus 5.5 538a6c8ae6 yaiam: user attributes in SignedIn and User (ADR-0044)
Web asks for the scope attributes; SignedIn.Attributes carries the
attributes yaiam released to the application (from UserInfo), and
Admin's User carries a user's attributes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 15:16:32 +01:00
terminarandClaude Opus 5.5 a3e8f9bb3b 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>
2026-11-17 10:54:53 +01:00
terminarandClaude Opus 5.5 4bff8798e5 yaiam: device-flow sign-in for Yetano programs (YAIAM-710)
A shared client for programs that sign in at yaiam (or any OIDC
provider): device flow (RFC 8628), refresh with rotation, revocation
(RFC 7009), UserInfo and a 0600 file store. Standard library only;
https only (http on loopback), exact issuer match, no redirects,
answers capped at 1 MiB, tokens never in errors or fmt output.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 21:40:58 +01:00
terminarandClaude Opus 5.5 6a97dbd4c6 Shared Atlassian clients: atlassian/jira and atlassian/confluence
New library module yetano.dev/yetano/yetano-clients (owner decision
2026-11-01) replacing the three own Jira clients in yareco, yabaratla
and yamcp:

- atlassian: Options, Auth (api_token, basic, bearer/pat, cookie),
  Deployment (Cloud/Data Center), TLS, APIError and sentinel errors.
- atlassian/internal/transport: retry with backoff on 5xx/connection
  errors, shared adaptive 429 throttle honouring Retry-After (from
  yabaratla/yareco), CA file, proxy, cross-host redirect hardening,
  response cap (from yamcp), startAt pagination, file downloads.
- atlassian/jira: typed reads (projects, versions, fields, issues,
  comments, changelog, editmeta, transitions), JQL search on Cloud
  (/search/jql) and Data Center, classic search pages, issue writes,
  ADF/plain-text bodies per deployment, custom-field helpers.
- atlassian/confluence: small content API client (CQL search, pages,
  spaces, current user, create/update page with version check,
  comment, label), taken over from yamcp.

Standard library only; tests against httptest servers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 14:11:00 +01:00