From 037b0d50e261393b75a17618aa0468a378b6e1d2 Mon Sep 17 00:00:00 2001 From: Youness Aamiri <41025072+AamiriYouness@users.noreply.github.com> Date: Wed, 2 Dec 2026 20:11:28 +0000 Subject: [PATCH 1/2] docs: re-plan the roadmap with keyring storage first Bijecta.CliAuth aims at gh/az-style login for team and ops CLIs, so login must be complete and safe before the library helps call APIs. New order: protected (OS keyring) storage, login ergonomics, the HTTP/DI integration layer, then the first preview. Milestone 2 closes for Keycloak, Duende, Auth0, and Entra ID; Okta stays paused without blocking. Google (native clients need a client secret) and GitHub (plain OAuth, no OIDC) are out of scope, and MFA requests move next to step-up challenges (ADR 0010 section 5). The README status and roadmap wording are rewritten, and ADR 0009 no longer cites old milestone numbers. --- README.md | 36 ++-- docs/ROADMAP.md | 204 +++++++++--------- docs/decisions/0009-silent-refresh.md | 6 +- docs/decisions/0010-provider-compatibility.md | 28 ++- docs/providers/README.md | 10 +- 5 files changed, 156 insertions(+), 128 deletions(-) diff --git a/README.md b/README.md index a3b783e..7c39db8 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,15 @@ # Bijecta.CliAuth -Reusable .NET packages for developers adding browser PKCE and device login to their -own CLI applications using an OIDC provider such as Keycloak or Okta. +Open-source .NET packages for teams building CLI tools that sign users in through +their own OIDC provider, in the spirit of `gh auth login` and `az login`: browser or +device login, silent refresh, status, and logout. -**Status: early development. Browser PKCE and device login, lazy discovery, -ID-token validation, session coordination, memory storage, and explicitly selected -plaintext file storage, and silent refresh are implemented. Deterministic protocol -tests and Keycloak integration coverage exercise both flows and refresh. HTTP and DI -integration, other providers, packaging, and protected storage remain unfinished; see the -[roadmap](docs/ROADMAP.md).** +**Status: early development. Implemented: browser PKCE and device login, lazy +discovery, ID-token validation, silent refresh, session coordination across threads +and processes, memory storage, and explicitly selected plaintext file storage. +Deterministic protocol tests and hosted runs against Keycloak, Duende IdentityServer, +Auth0, and Microsoft Entra ID cover both flows and refresh. Not yet done: OS keyring +storage, HTTP and DI integration, and packaging; see the [roadmap](docs/ROADMAP.md).** ## Packages @@ -80,21 +81,22 @@ configured profile's status. | Duende IdentityServer | ✅ | ✅ | ✅ | [Duende](docs/providers/duende.md) | | Auth0 | ✅ | ✅ | ✅ | [Auth0](docs/providers/auth0.md) | | Microsoft Entra ID | ✅ | ✅ | ✅ | [Entra ID](docs/providers/entra.md) | -| Okta, Google | not tested | not tested | not tested | — | -| GitHub | not tested | not tested | not tested | — | +| Okta | not tested | not tested | not tested | — | ✅ means a passing hosted CI run. Details, the legend, and the tested versions are in the -[compatibility table](docs/providers/README.md). +[compatibility table](docs/providers/README.md). Plain OAuth providers without OIDC (such +as GitHub) and providers whose native clients need a client secret (such as Google) are +out of scope. ## Roadmap -The [roadmap](docs/ROADMAP.md) lists the ordered milestones: an AOT guard, silent -refresh, provider compatibility (Okta, Auth0, Entra ID, Google, IdentityServer), -the HTTP/DI integration layer, a first preview release, and protected storage. +The [roadmap](docs/ROADMAP.md) lists the ordered milestones. Done: an AOT guard, silent +refresh, and provider compatibility. Next: OS keyring storage, login ergonomics (device +login over SSH, a token override for scripts), the HTTP/DI integration layer, and then a +first preview release. -Both login flows are part of the first usable preview. That preview may use explicitly -selected plaintext persistence; protected storage is deferred. Workers, client credentials, -and token exchange are outside scope. Dependency review, final license/author and +The first preview stores tokens in the OS keyring by default; plaintext files stay an +explicit opt-in. Workers, client credentials, and token exchange are outside scope. Dependency review, final license/author and repository metadata, security reporting setup, native backend tests, and release validation remain outstanding. Scaffold packages are not release artifacts. diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index 5953902..a0dde98 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -5,68 +5,38 @@ project is going and what "done" means for each milestone. Detailed checklists f an active milestone live in their own plan file (as [storage-plan.md](storage-plan.md) did for storage); architecture choices live in [ADRs](decisions/). -Last updated: 2026-11-06. +Last updated: 2026-12-02. + +## Direction + +Bijecta.CliAuth is an open-source library for teams, including ops teams, building +.NET CLI tools that sign users in, in the spirit of `gh auth login` and `az login`. +Login has to be complete and safe before the library helps call APIs. That means +browser and device login, refresh, status, logout, tokens kept in the OS keyring, +and use in scripts and over SSH. The order below follows from that (re-planned +2026-12-02 with the maintainer): keyring storage, then login ergonomics, then the +HTTP and DI layer, then the first preview. ## Current focus -- Done: Core contracts, browser PKCE and device login, session coordination, - memory storage, and plaintext file storage with cross-process leases, logout by - record removal, session listing, and private-location checks - ([storage plan](storage-plan.md), ADRs 0004–0008). -- Done: milestone 0 (AOT guard), PR #5. Its three `Native AOT publish and smoke` - jobs are required checks on main. -- Done: storage step 6 cross-process race tests, PR #6, verified on the hosted - Ubuntu/Windows/macOS matrix (run 41239616630). -- Done: milestone 1 (silent refresh), PR #7, per [ADR 0009](decisions/0009-silent-refresh.md): - hosted run 41254185595 passed all seven jobs on Ubuntu/Windows/macOS, including the - process-race refresh tests, the AOT `token` smoke, and Keycloak with strict rotation. -- Done: milestone 2 phase 0 (shared groundwork), PR #8, per [ADR 0010](decisions/0010-provider-compatibility.md) - section 1: hosted run 41502186630 passed all seven required jobs, including the integration job that - now also runs the provider harness tests. -- Done: milestone 2 phase 1 (Duende IdentityServer), PR #9, per - [ADR 0010](decisions/0010-provider-compatibility.md) section 2: hosted run 41518115392 passed all seven - required jobs; the integration job ran all six Duende tests (46 passed, 5 env-gated skips). -- Done: milestone 2 phase 3 (Auth0), PR #10 (merged as `aee5e20`), per - [ADR 0010](decisions/0010-provider-compatibility.md) section 3, moved ahead of Okta with the maintainer's approval - because Okta's free plan requires a business sign-up email. Hosted run 41724808616 (push to main) passed: 45 - tests, 39 passed, 6 skipped (Keycloak dev-fixture scenarios, Auth0 consent denial). The providers workflow now - runs nightly and on push to main with Auth0 required. GitHub registered the workflow only when this merge - changed it; the dispatch-only copy merged in phase 0 was never registered. -- Active: milestone 2, phase 4 (Microsoft Entra ID) on branch `milestone-2/phase-4-entra`. Tenant set up - 2026-11-06 in the maintainer's Default Directory (security defaults off, cloud-only test user, browser and device - single-tenant public-client apps with admin consent; local values in the git-ignored `.env.entraid`). - `tests/Bijecta.CliAuth.ProviderTests/Entra/EntraScenarios.cs` added and registered in `ProviderCatalog`. First live - runs (local, macOS, 2026-11-06): browser login, device login, silent refresh, and session reuse pass (4 passed, - consent denial skipped as declared), three consecutive runs; the whole provider project with Auth0 and Entra - configured ran 50 tests, 43 passed, 7 skipped, 0 failed; integration format check clean. Confirmed quirks (one Core - change, the rest in test configuration): the discovered single-tenant issuer matches exactly; the loopback port is ignored - (one manifest entry `http://127.0.0.1/callback/` serves the fixed port 43823); the device `verification_uri` is - `https://login.microsoft.com/device`, outside the issuer origin, so the profile adds it to `allowedEndpointOrigins`; - token responses list every consented scope (`User.Read email openid profile`), which Core used to reject as - unrequested: with the maintainer's approval (2026-11-06) Core now ignores granted scopes that were not requested - (login: against the profile's scopes; refresh: against the session's grant, so a refresh still never widens it), - amending ADR 0009 and `docs/usage/browser-login.md`, and Entra requests plain `profile offline_access`; access - tokens live about 71 min against a 1 h ID token, so the harness gained an optional `ProviderDefinition.RefreshAhead` and the refresh scenario moves the clock into the - early-refresh window (30 min) for Entra; refresh tokens rotate (*Rotates*). Login pages are told apart by heading - because Entra keeps inactive panels in the DOM; the newer device page ("Approve sign-in on another device") uses - `#idBtn_Approve`/`#idBtn_Cancel`. Verification after the scope change (local, macOS, 2026-11-06): deterministic - solution 461 tests, 457 passed, 4 Windows-only skipped (protocol tests 168, including the new - `UnrequestedGrantedScopesAreIgnored` and the reworked refresh scope test); integration solution with Auth0 and - Entra configured 61 tests, 54 passed, 7 skipped; Entra suite passed twice more; both format checks clean. Open: - confirming single-tenant only and the `RefreshAhead` variant (both implemented and recorded in ADR 0010 section 4). - Docs done (2026-11-06): [Entra guide](providers/entra.md), compatibility-table row (cells stay "not tested" until a - hosted run, footnote 4), ADR 0010 section 4, test README validation entry; `providers.yml` maps the five - `CLIAUTH_ENTRA_*` secrets and requires `Auth0,Entra` by default. Without provider variables the provider project - ran 50 tests, 35 passed, 15 skipped. Committed as `26d4209` (Core scope change) and `78036ad` (Entra scenarios, - docs, workflow) on PR #12; the five `CLIAUTH_ENTRA_*` secrets are in the `providers` environment. Hosted run - 42305996399 (dispatch on the PR branch, `78036ad`, Auth0 and Entra required) passed: 50 tests, 43 passed, 7 - skipped; the Entra table cells are now ✅. Next action: the seven required checks pass on PR #12, then the - maintainer merges it; the push-to-main providers run then requires Entra. - Still open from phase 3: an option to send Auth0's `audience` (public API change). -- Paused: phase 2 (Okta). Decisions recorded 2026-11-02 (custom `default` server, fixed port 43823 with a one-time - any-port probe, rotation with a 0 s grace period, consent denial via a separate app if Okta allows it); resumes - when the maintainer has a business email for the Integrator Free Plan. -- Not now: packaging and releases (milestone 4), protected storage (milestone 5). +- Done: Core contracts, browser PKCE and device login, session coordination, memory + storage, plaintext file storage with cross-process leases, logout, session listing, + and private-location checks ([storage plan](storage-plan.md), ADRs 0004–0008). +- Done: milestone 0 (AOT guard, PR #5) and milestone 1 (silent refresh, PR #7, + [ADR 0009](decisions/0009-silent-refresh.md)). +- Done: milestone 2 (provider compatibility) for Keycloak, Duende IdentityServer, Auth0 + (PR #10), and Microsoft Entra ID (PR #12, merged as `8f76f5b`; hosted runs 42305996399 + and 42306759178). The providers workflow runs nightly and on push to main, requiring + `Auth0,Entra`. Okta is paused and no longer blocks later milestones. Google and GitHub + are dropped ([ADR 0010](decisions/0010-provider-compatibility.md) section 5). +- Active: re-plan on branch `roadmap/keyring-first`. Roadmap reordered, Google and + GitHub removed from the compatibility tables, ADR 0010 section 5 added. The unpushed + Google branch `milestone-2/phase-5-google` (Core commits `233066b` installed-app secret + and `5d73544` `verification_url` fallback) is abandoned, not merged; its uncommitted + test code and guide are in a local stash. +- **Next action:** merge the re-plan PR, then start milestone 3: draft the protected + storage ADR (see milestone 3, "Decide first") and discuss it with the maintainer + before any code. ## Rules for every milestone @@ -154,27 +124,27 @@ skipped; all 11 Keycloak tests pass again after the fixes. Done when: refresh works end to end against Keycloak, and the process-race tests pass on all three OSes. -### 2. Provider compatibility +### 2. Provider compatibility — complete (Okta paused) Prove the library works with real OAuth/OIDC providers, not only Keycloak. -- Real integration tests (browser and device flows, refresh, revocation where - supported) against Keycloak, Duende IdentityServer, Okta, Auth0, Microsoft Entra ID, - and Google. +- Real integration tests (browser and device flows, refresh) against the OIDC + providers teams run: Keycloak, Duende IdentityServer, Okta, Auth0, and Microsoft + Entra ID. - Document each provider's quirks and fix generic issues without provider-specific code in Core. -- MFA requests: optional `acr_values`, `max_age`, and `prompt=login` per profile or - login, plus validation of the returned `acr`/`amr` claims so an ignored request is - detected. MFA itself always happens on the provider's page. -- Docs: one configuration guide per provider (app registration, redirect URIs, - device flow, scopes, refresh) and a compatibility table in the README. +- One configuration guide per provider (app registration, redirect URIs, device flow, + scopes, refresh), so teams know how to set up their own provider, and a + compatibility table in the README. -Done when: each listed provider has a passing integration run (or a documented -reason it cannot be automated) and a published guide. +Done when: each listed provider has a passing hosted run and a published guide. Met +for every provider except Okta, which waits for an account and does not block later +milestones. -Plan (from the milestone brief): phase 0 shared groundwork; phases 1–6 one provider per PR in the order -Duende IdentityServer, Okta, Auth0, Entra ID, Google, GitHub (docs only); phase 7 MFA requests; phase 8 -finish the table and README. Decisions extend [ADR 0010](decisions/0010-provider-compatibility.md). +Plan (from the milestone brief): phase 0 shared groundwork, then one provider per PR. +Decisions extend [ADR 0010](decisions/0010-provider-compatibility.md). Changed on +2026-12-02 (ADR 0010 section 5): Google and GitHub dropped, and MFA requests moved +to milestone 5 next to step-up challenges. - [x] Phase 0: shared groundwork (PR #8) - [x] `tests/Bijecta.CliAuth.ProviderTests` in the integration solution: `CLIAUTH__*` settings, @@ -199,13 +169,17 @@ format check; deterministic suite 461 tests, 457 passed, 4 Windows-only skipped; 46 passed (11 Keycloak, 29 harness, 6 Duende), 5 Keycloak reference scenarios skipped without variables. Of four integration-solution runs, the first failed in the disposable Keycloak suite's fixture setup before any test (the message was not captured; that suite alone then passed 11/11) and the next three passed. The hosted job passed. -- [ ] Phase 2: Okta (paused: free-plan sign-up needs a business email; Auth0 goes first) -- [x] Phase 3: Auth0 (hosted run 41724808616) +- [ ] Phase 2: Okta (paused: the free plan needs a business email to sign up). + Decisions recorded 2026-11-02: custom `default` authorization server, fixed port + 43823 with a one-time any-port probe, rotation with a 0 s grace period, consent + denial through a separate app if Okta allows it. +- [x] Phase 3: Auth0 (PR #10; hosted run 41724808616) - [x] Phase 4: Microsoft Entra ID (PR #12; hosted run 42305996399) -- [ ] Phase 5: Google -- [ ] Phase 6: GitHub (docs only) -- [ ] Phase 7: MFA requests -- [ ] Phase 8: finish the table, guides, and README +- Dropped: phase 5 Google (its native clients need a client secret, which Core does + not send) and phase 6 GitHub (plain OAuth without OIDC ID tokens). +- Moved: phase 7 MFA requests, to milestone 5. +- [x] Phase 8: compatibility tables and README list only the providers in scope + (re-plan branch). Phase 0 evidence (local, macOS, 2026-11-01): integration solution Release build without warnings; the provider project ran 29 harness tests passed and 5 scenarios skipped with no variables set; against the @@ -213,42 +187,78 @@ developer Keycloak fixture (26.8.1, realm re-imported), three consecutive runs p refresh, and SSO scenarios, with consent denial skipped as declared. One earlier device run hit the 3-minute test timeout before the page step handled Keycloak's device consent page; it did not recur. -### 3. Integration layer +### 3. Protected storage + +Keep tokens in the OS keyring by default, as `gh` and `az` do. Plaintext files stay an +explicit, clearly labeled opt-in. A team's security review is unlikely to accept a CLI +that writes refresh tokens to plaintext files, so this comes before the first preview. + +Decide first, in a new ADR: +- Native services: macOS Keychain, Windows Credential Manager (with DPAPI), and Linux + Secret Service. +- Headless Linux. SSH sessions and containers often have no Secret Service, which ops + users hit at once. Decide what happens there: an actionable error that names the + explicit plaintext option, never a silent fallback. +- Record size limits (Windows credentials are small), key naming, and what logout + removes. +- How cross-process leases work with a keyring backend (Shared.Storage). + +- Implement the platform storage packages behind the existing `ITokenStore` contract. +- Test against the real keyring on each OS in hosted CI. +- The sample uses protected storage by default; plaintext needs an explicit flag. +- Document moving from plaintext to protected storage (ADR 0008: new key, log in again). + +Done when: login, refresh, and logout persist through the OS keyring on Ubuntu, +Windows, and macOS in hosted CI, including the cross-process race tests, and the +AOT-published sample works with it. + +### 4. Login ergonomics -Make the library easy to adopt in a real CLI. +Make login behave the way people expect from `gh auth` and `az login`, for laptops, SSH +sessions, and scripts. + +- Device flow when no browser can open (SSH, containers), as a mode the host + chooses explicitly. Core keeps its rule of no implicit fallback between flows. +- An environment-variable token override for CI and scripts. The host chooses the + variable name, and the library never stores that token. +- A token-printing API for scripts (`gh auth token` style). +- Custom `HttpClient` and proxy configuration for login and refresh (corporate proxies). +- Decide first: several accounts per profile with switching (`gh auth switch`, + `az account set`), or keep one account per profile. + +Done when: the sample CLI covers these on all three OSes, AOT-published, with +protected storage. + +### 5. Integration layer + +Help the CLI call APIs once login works. - DI registration (`AddCliAuth`) in Extensions, with source-generated configuration binding (AOT). - An HTTP message handler that attaches access tokens, refreshes when needed, and surfaces step-up challenges (RFC 9470 `insufficient_user_authentication`, Entra claims challenges) to the host. +- MFA requests (moved from milestone 2): optional `acr_values`, `max_age`, and + `prompt=login` per profile or login, plus validation of the returned `acr`/`amr` + claims so an ignored request is detected. MFA itself always happens on the + provider's page. +- An option to send Auth0's `audience` (public API change), so Auth0 issues access + tokens that APIs can validate. - A System.CommandLine example CLI calling a real API, with `login`, `logout`, `status`, `list`, and `token` commands. -- Small additions: a token-printing API for scripts, an environment-variable token - override for CI, automatic device flow when no browser is available, and custom - `HttpClient`/proxy configuration. Done when: the example CLI calls a protected API with automatic refresh, AOT-published, on all three OSes. -### 4. First preview release +### 6. First preview release -Packaging on its own branch, after milestones 1–3. +Packaging on its own branch, after milestones 3–5. - Package metadata, license, security policy, and dependency review. - Pack and smoke-test the packages from a clean consumer project (including an AOT consumer). - Publish a preview only with the maintainer's explicit approval. -### 5. Protected storage - -Keyring-backed storage: macOS Keychain, Windows (DPAPI/Credential Manager), and -Linux Secret Service, decided first in a new ADR (native services, encryption, key -lifecycle, headless Linux). - -- Implement the platform storage packages behind the existing `ITokenStore` contract. -- Document moving from plaintext to protected storage (ADR 0008: new key, log in again). - ### Later: toward 1.0 - The 1.0 gate: API review, stable session-file and key formats, full docs. @@ -261,7 +271,6 @@ Not planned; each needs a reason before it is scheduled. - Pushed authorization requests (PAR, RFC 9126) for providers that require them. - Resource indicators (RFC 8707): tokens for several APIs from one login. -- Several accounts per profile with switching. - Logging and OpenTelemetry hooks with token redaction. ## Out of scope @@ -270,3 +279,6 @@ Not planned; each needs a reason before it is scheduled. - Background workers, client credentials, and token exchange (RFC 8693), as recorded in the project guidance. - Dynamic client registration and provider-side single logout. +- Plain OAuth 2.0 providers without OIDC ID tokens, such as GitHub. +- Native clients that must send a client secret, such as Google's: Core stays a + public client with PKCE. diff --git a/docs/decisions/0009-silent-refresh.md b/docs/decisions/0009-silent-refresh.md index 2cf5046..355ca74 100644 --- a/docs/decisions/0009-silent-refresh.md +++ b/docs/decisions/0009-silent-refresh.md @@ -170,10 +170,10 @@ coordinates on its own. This can be revisited if a real consumer needs it. - Reacting to an HTTP 401 with a refresh, and never letting a delayed 401 from an old token invalidate a newer one (TOK-03), belong to the HTTP message handler in - roadmap milestone 3. + the roadmap's integration-layer milestone (milestone 5 since the 2026-12-02 re-plan). - Starting an interactive login after `ReauthenticationRequired`, as kubelogin - does, is a host or integration-layer choice (milestone 3), not Core's. -- Step-up and MFA claims during refresh belong to milestone 2. + does, is a host or integration-layer choice, not Core's. +- Step-up and MFA claims during refresh belong to the integration-layer milestone, with the MFA request options. ## Consequences diff --git a/docs/decisions/0010-provider-compatibility.md b/docs/decisions/0010-provider-compatibility.md index 431ffed..2711cc8 100644 --- a/docs/decisions/0010-provider-compatibility.md +++ b/docs/decisions/0010-provider-compatibility.md @@ -1,15 +1,16 @@ # 0010: Provider compatibility -Status: Accepted (sections 1–2) +Status: Accepted (sections 1–5) -Date: 2026-11-01 (roadmap milestone 2, phase 0); section 2: 2026-11-02 (phase 1) +Date: 2026-11-01 (roadmap milestone 2, phase 0); section 2: 2026-11-02 (phase 1); section 5: 2026-12-02 (re-plan) ## Context Milestone 2 has to show that the library works with real OAuth/OIDC providers, not only Keycloak: Duende IdentityServer, Okta, Auth0, Microsoft Entra ID, and Google, with GitHub documented as unsupported. Each provider has its own quirks, and several need decisions: Auth0's audience, Entra's multi-tenant issuer, Google's -installed-app client secret, and MFA requests. +installed-app client secret, and MFA requests. Section 5 later narrowed this list: Google and GitHub are out of +scope, and MFA requests moved to the integration-layer milestone. ADR 0001 keeps protocol handling internal and says configuration must not bypass validation. Quirks are therefore solved with typed, provider-neutral options or documented configuration, never with provider-specific branches in @@ -192,7 +193,20 @@ No Core change for the rest: heading. The device confirmation page changed to "Approve sign-in on another device" (`#idBtn_Approve`), and the automation handles both versions. -## Later sections - -Each later provider phase adds its decisions here: the policy on installed-app client secrets (Google), and the MFA -request options and claim validation (phase 7). +## 5. Scope change: Google and GitHub dropped, MFA moved (2026-12-02) + +The library is for teams building their own CLI tools against the OIDC provider they already run. The maintainer +re-planned the roadmap so that OS keyring storage comes before the HTTP layer and the first preview, and narrowed +the provider list: + +- **Google is out of scope.** Its "Desktop app" and "limited input" clients need a `client_secret` at the token + endpoint, even with PKCE, and its device response uses the legacy `verification_url` field. Supporting it would + mean an opt-in installed-app secret in `OidcProfile` and a fallback field in Core. Both were implemented on an + unpushed branch and are not merged: Core stays a native public client that sends no client secret, as the + project context requires, and gains no field only one provider needs. Google may also block automated sign-in, + so it could not meet section 1's hosted-run rule. +- **GitHub is out of scope.** It is plain OAuth 2.0 without OIDC discovery or ID tokens, which Core requires. + No guide is written. +- **MFA requests move** to the integration-layer milestone (roadmap milestone 5), next to step-up challenges, which + they answer. Their decisions are still recorded here when that work starts. +- **Okta stays in scope**, paused until an account is available, and no longer blocks later milestones. diff --git a/docs/providers/README.md b/docs/providers/README.md index 9993e64..83a5828 100644 --- a/docs/providers/README.md +++ b/docs/providers/README.md @@ -2,7 +2,9 @@ Which OAuth 2.0/OIDC providers Bijecta.CliAuth has been tested against, and how. The rules for what counts as tested are in [ADR 0010](../decisions/0010-provider-compatibility.md). Each provider has a configuration guide; -new guides start from the [template](_template.md). +new guides start from the [template](_template.md). Plain OAuth providers without OIDC (such as GitHub) and +providers whose native clients need a client secret (such as Google) are out of scope ([ADR 0010](../decisions/0010-provider-compatibility.md) +section 5). ## Compatibility @@ -13,8 +15,6 @@ new guides start from the [template](_template.md). | Okta | not tested | not tested | not tested | not tested | not tested | not tested | — | | Auth0 | ✅ | ✅ | ✅ | Strict ✅ | Yes | not tested | [Auth0](auth0.md) | | Microsoft Entra ID | ✅ | ✅ | ✅ | Rotates ✅ | No | not tested | [Entra ID](entra.md) | -| Google | not tested | not tested | not tested | not tested | not tested | not tested | — | -| GitHub | not tested | not tested | not tested | not tested | not tested | not tested | — | ### Legend @@ -28,8 +28,8 @@ new guides start from the [template](_template.md). is rejected). Not rotating is not a failure. The ✅ means the library handled that behaviour. - **Revocation advertised** records whether discovery lists a `revocation_endpoint`. The library does not call it yet (remote revocation is deferred). -- **MFA request** is whether the provider honours `acr_values`, `max_age`, and `prompt=login` (milestone 2, - phase 7). +- **MFA request** is whether the provider honours `acr_values`, `max_age`, and `prompt=login` (roadmap + milestone 5). ## Tested against From 47904b136e8b4a322d424c6992f37d4472dcc1a4 Mon Sep 17 00:00:00 2001 From: Youness Aamiri <41025072+AamiriYouness@users.noreply.github.com> Date: Wed, 2 Dec 2026 20:18:20 +0000 Subject: [PATCH 2/2] ci: run OS-independent steps on Linux only The fixture helper build, the format check, and the trim/AOT analysis give the same result on every OS, so they no longer run three times. Tests and the native AOT publish and smoke still run on Ubuntu, Windows, and macOS: file locks, atomic replacement, permission checks, and browser launch differ per OS. Job names are unchanged, so the required checks on main still match. --- .github/workflows/ci.yml | 6 ++++++ README.md | 7 ++++--- docs/ROADMAP.md | 5 ++++- 3 files changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e21008..1cd9e3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,11 +33,15 @@ jobs: run: dotnet restore Bijecta.CliAuth.slnx --locked-mode - name: Build run: dotnet build Bijecta.CliAuth.slnx --configuration Release --no-restore + # The fixture helper, formatting, and AOT analysis give the same result on every OS, so they run on Linux only. + # Jobs and their names stay per OS: they are required checks on main. - name: Build .NET fixture helper + if: runner.os == 'Linux' run: dotnet build samples/keycloak/fixture.cs --configuration Release - name: Test run: dotnet test --solution Bijecta.CliAuth.slnx --configuration Release --no-build - name: Check formatting + if: runner.os == 'Linux' run: dotnet format Bijecta.CliAuth.slnx --verify-no-changes --no-restore native-aot: @@ -66,7 +70,9 @@ jobs: run: sudo apt-get update && sudo apt-get install -y clang zlib1g-dev # IsAotCompatible and PublishAot add SDK-versioned and runtime-specific lock entries, so these # restores are not locked; the build job keeps locked restore. Trim/AOT warnings are errors. + # Analyzer results do not depend on the host OS; the native publish and smoke below still run on every OS. - name: Analyze every library for trim and AOT compatibility + if: runner.os == 'Linux' run: | set -euo pipefail for project in src/*/*.csproj; do diff --git a/README.md b/README.md index 7c39db8..5f567e9 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,10 @@ three different versions of the portable Core package. NuGet packing/release che will be a separate step. Keycloak/Playwright tests use a separate integration solution and Linux CI job; see [integration prerequisites and commands](tests/Bijecta.CliAuth.KeycloakTests/README.md). Other providers use the [provider tests](tests/Bijecta.CliAuth.ProviderTests/README.md) and their own workflow. -The fixture helper is managed .NET code, with Native AOT disabled. On each OS, CI -builds every library with `-p:IsAotCompatible=true` (trim and AOT warnings are errors), -publishes the sample with Native AOT, and smoke-tests the binary: +The fixture helper is managed .NET code, with Native AOT disabled. CI builds every +library with `-p:IsAotCompatible=true` on Linux (trim and AOT warnings are errors; the +result does not depend on the OS), and on each OS publishes the sample with Native AOT +and smoke-tests the binary. The format check also runs on Linux only: ```sh dotnet publish samples/Bijecta.CliAuth.Sample.Cli -c Release -r -p:PublishAot=true -o artifacts/aot diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index a0dde98..4806321 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -33,7 +33,10 @@ HTTP and DI layer, then the first preview. GitHub removed from the compatibility tables, ADR 0010 section 5 added. The unpushed Google branch `milestone-2/phase-5-google` (Core commits `233066b` installed-app secret and `5d73544` `verification_url` fallback) is abandoned, not merged; its uncommitted - test code and guide are in a local stash. + test code and guide are in a local stash. CI trimmed on the same branch: the + fixture helper build, format check, and AOT analysis run on Linux only; tests and the + native AOT publish and smoke still run on Ubuntu, Windows, and macOS under the same + required job names. - **Next action:** merge the re-plan PR, then start milestone 3: draft the protected storage ADR (see milestone 3, "Decide first") and discuss it with the maintainer before any code.