Skip to content

feat: mint the id_token at the token exchange for an authoritative sid - #3200

Merged
tada5hi merged 4 commits into
masterfrom
feat/oauth2-id-token-at-exchange
Jul 9, 2026
Merged

tada5hi merged 4 commits into
masterfrom
feat/oauth2-id-token-at-exchange

Conversation

@tada5hi

@tada5hi tada5hi commented Jul 8, 2026 •

Copy link
Copy Markdown
Collaborator

Plan 042 item 6. Stacked on #3199 (drop implicit) — base branch feat/oauth2-drop-implicit; retarget to master once #3199 merges.

The defect

The id_token was minted at /authorize time from options.sessionId and passed through the auth-code blob verbatim to /token. Two consequences:

  1. Stale sid. The authorization_code grant's resolveSession can back the issued tokens with a different session than the code's session_id — the fix: reuse bearer session on interactive authorization_code login #3191 sub/realm-mismatch fallback, or a session deleted in flight. The id_token, minted earlier, kept the old sid → revoke-by-sid (RP-initiated logout, feat: add rp-initiated logout (end_session_endpoint) #3196) targeted the wrong session.
  2. No id_token for federated logins. Only OAuth2Authorization.authorize() minted an id_token, but the external-IdP callback (IdentityProviderController) issues its code directly, bypassing that path — so an openid-scoped federated login received no id_token at all.

The fix

Mint the id_token inside OAuth2AuthorizeGrant.runWith, after resolveSession:

  • sid = session.id (the real backing session) — authoritative in the reuse branch, the fallback-create branch, and the session-less federated flow alike.
  • auth_time is captured at authorize time onto the auth-code blob as a new OAuth2AuthorizationCode.auth_time field (replacing the removed id_token field — the code is a Redis cache blob, so no migration), and read back at the exchange.
  • at_hash (over the freshly-issued access token) and c_hash are recomputed at the exchange; nonce rides from the code.
  • OAuth2Authorization.authorize() no longer mints the id_token, and drops its openIdTokenIssuer / identityResolver dependencies (and the codeIssuer.updateIdToken method is gone). The openIdTokenIssuer is instead wired into the TokenController's authorize grant.

Tests

  • Core grant unit (grant-types/authorize.spec.ts): no id_token without openid scope; sid = reused session (not the code's session_id by coincidence) with auth_time/nonce/at_hash asserted; sid = the freshly-created session on the fallback branch (≠ the stale code id); id_token minted for a session-less (federated) openid code.
  • Authorization module unit: auth_time = session created_at for an interactive authorize, = now for a session-less one, passed through to the code issuer.
  • e2e grant-authorize.spec.ts: strengthened the existing sid/auth_time test to assert id_token.sid === introspect(access_token).session_id — the id_token and access token share one real session.
  • e2e grant-idp-authorize.spec.ts: new test — an openid federated login now returns an id_token whose sid matches the access token's session (previously: no id_token).

Full server-core suite green (1170 tests).

Summary by CodeRabbit

  • New Features

    • OAuth and OpenID Connect now use authorization code flow only.
    • ID tokens are issued during the token exchange, with session-based sid and accurate auth_time claims.
  • Bug Fixes

    • Redirects no longer include access tokens or ID tokens.
    • Public clients now consistently require PKCE and state.
  • Documentation

    • Updated API guidance and discovery details to reflect code-only authorization and PKCE requirements.

tada5hi added 2 commits July 8, 2026 11:56
response_type=code is now the only supported response type (OAuth 2.1 /
RFC 9700 posture):

- the code-request validator requires response_type to be exactly
  'code'; token / id_token / none / hybrid combos are rejected
- OAuth2Authorization.authorize() is code-only (defense in depth) —
  the TOKEN/ID_TOKEN issuance branches, at_hash computation and the
  authorize-response accessToken/idToken outputs are gone; an
  openid-scoped code still carries its id_token on the code blob for
  the /token exchange
- AuthorizeController.confirm() no longer writes access_token /
  id_token into the redirect URL (tokens leaked via history, proxy
  logs and Referer - the fix at source is to not produce them at all)
- discovery response_types_supported now advertises only 'code'
- the code-request verifier requires PKCE + state for public clients
  unconditionally (the willIssueCode gate is dead with code-only)
- client-web's client URL generator emits response_type=code

BREAKING: RPs using the implicit or hybrid flow must migrate to the
authorization code flow with PKCE.
…d (plan 042)

The id_token was minted at authorize time from options.sessionId, so its
`sid` could reference a stale session (the #3191 session-reuse-vs-fallback
path) and the session-less federated IdP flow produced no id_token at all.

Move minting into the authorization_code grant, after resolveSession:

- OAuth2AuthorizeGrant.runWith mints the openid-scoped id_token with
  sid = the real backing session (reuse, fallback, and federated flows
  alike); at_hash (over the fresh access token) and c_hash are recomputed,
  nonce and auth_time ride from the code
- the authentication instant is carried on the auth-code blob as
  OAuth2AuthorizationCode.auth_time (replacing the removed id_token field —
  cache blob, no migration); OAuth2Authorization stamps it and drops its
  openIdTokenIssuer / identityResolver dependencies and id_token minting
- openIdTokenIssuer is wired into the TokenController authorize grant;
  codeIssuer.updateIdToken is removed

Fixes the plan-041 stale-sid residual; the federated openid flow now
returns an id_token whose sid matches the access token's session.
Copilot AI review requested due to automatic review settings July 8, 2026 10:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@tada5hi, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 54 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3dc29f37-67d0-4669-9878-ce020077cfcf

📥 Commits

Reviewing files that changed from the base of the PR and between 1752459 and 34b0975.

📒 Files selected for processing (2)
  • .agents/architecture.md
  • apps/server-core/src/app/modules/http/modules/controller.ts
📝 Walkthrough

Walkthrough

This PR restricts OAuth2 authorization to response_type=code only, rejecting implicit/hybrid types at both the request validator and OAuth2Authorization.authorize(). PKCE and state are now enforced unconditionally for public clients. id_token minting moves from authorization-code issuance to /token exchange, sourcing sid from the resolved session and auth_time from the session's creation time, stamped onto the auth-code blob and consumed by the authorization_code grant.

Changes

Code-only OAuth2/OIDC flow

Layer / File(s) Summary
Type/interface updates for code-only contracts
packages/core-kit/.../entity.ts, apps/server-core/.../code/issuer/types.ts, apps/server-core/.../authorization/types.ts, apps/server-core/.../grant-types/types.ts, apps/server-core/.../token/types.ts, apps/server-core/.../authorize/types.ts
Adds auth_time/authTime fields, removes id_token/updateIdToken, accessTokenIssuer, openIdTokenIssuer (from authorize context), identityResolver; adds openIdTokenIssuer to token grant/controller contexts.
Request validation and PKCE/state enforcement
code-request/validator.ts, code-request/verifier/module.ts, tests
Validator requires exactly one response_type=code; verifier drops willIssueCode gating and enforces PKCE/state unconditionally for public clients.
OAuth2Authorization.authorize simplification
authorization/module.ts, code/issuer/module.ts
Rejects non-code response types, removes access/id-token minting, stamps authTime via codeIssuer.issue().
id_token minting at /token exchange
grant-types/authorize.ts, token/module.ts, controller.ts
OAuth2AuthorizeGrant mints id_token post-session-resolution with sid, auth_time, at_hash; DI wires openIdTokenIssuer into token controller.
Controller wiring and discovery metadata
authorize/module.ts, realm/module.ts, controller.ts
Redirect URL drops access_token/id_token; discovery advertises only CODE; DI resolves code issuer/verifier instead of token issuers.
Docs and client URL generator
.agents/architecture.md, docs/.../api-oauth2.md, apps/client-web/.../url.vue
Documents code-only posture and exchange-time id_token minting; client URL generator uses response_type=code.
Test coverage
test/unit/core/helpers/fake-oauth2-openid-token-issuer.ts, various *.spec.ts
Adds fake OpenID issuer helper; updates/extends tests validating code-only rejection, PKCE enforcement, and sid/auth_time correctness.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Client
  participant AuthorizeController
  participant OAuth2Authorization
  participant OAuth2AuthorizationCodeIssuer
  Client->>AuthorizeController: GET /authorize?response_type=code
  AuthorizeController->>OAuth2Authorization: authorize(request)
  OAuth2Authorization->>OAuth2Authorization: validate response_type == code
  OAuth2Authorization->>OAuth2AuthorizationCodeIssuer: issue({sessionId, authTime})
  OAuth2AuthorizationCodeIssuer-->>OAuth2Authorization: authorizationCode
  OAuth2Authorization-->>AuthorizeController: authorizationCode
  AuthorizeController-->>Client: redirect(code, state)
Loading
sequenceDiagram
  participant Client
  participant TokenController
  participant OAuth2AuthorizeGrant
  participant SessionManager
  participant OpenIDTokenIssuer
  Client->>TokenController: POST /token (code)
  TokenController->>OAuth2AuthorizeGrant: runWith(authorizationCode)
  OAuth2AuthorizeGrant->>SessionManager: resolveSession(authorizationCode)
  SessionManager-->>OAuth2AuthorizeGrant: session
  OAuth2AuthorizeGrant->>OpenIDTokenIssuer: issue(claims incl sid, auth_time, at_hash)
  OpenIDTokenIssuer-->>OAuth2AuthorizeGrant: id_token
  OAuth2AuthorizeGrant-->>TokenController: tokens (access_token, id_token)
  TokenController-->>Client: token response
Loading

Possibly related PRs

  • authup/authup#3020: Both PRs modify the OAuth2 authorization code-request verifier's PKCE gating based on response_type/code issuance.
  • authup/authup#3022: Both PRs change /authorize state parameter enforcement for public clients via the same verifier.
  • authup/authup#3191: Both PRs thread session continuity through the auth-code blob to mint sid/auth_time at /token exchange.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: moving id_token minting to token exchange to ensure the sid comes from the resolved session.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/oauth2-id-token-at-exchange

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Jul 8, 2026

Copy link
Copy Markdown

Open in StackBlitz

authup

npm i https://pkg.pr.new/authup@3200

@authup/client-web

npm i https://pkg.pr.new/@authup/client-web@3200

@authup/server-core

npm i https://pkg.pr.new/@authup/server-core@3200

@authup/access

npm i https://pkg.pr.new/@authup/access@3200

@authup/client-web-kit

npm i https://pkg.pr.new/@authup/client-web-kit@3200

@authup/client-web-kit-theme

npm i https://pkg.pr.new/@authup/client-web-kit-theme@3200

@authup/client-web-nuxt

npm i https://pkg.pr.new/@authup/client-web-nuxt@3200

@authup/client-web-theme

npm i https://pkg.pr.new/@authup/client-web-theme@3200

@authup/core-http-kit

npm i https://pkg.pr.new/@authup/core-http-kit@3200

@authup/core-kit

npm i https://pkg.pr.new/@authup/core-kit@3200

@authup/core-realtime-kit

npm i https://pkg.pr.new/@authup/core-realtime-kit@3200

@authup/errors

npm i https://pkg.pr.new/@authup/errors@3200

@authup/i18n

npm i https://pkg.pr.new/@authup/i18n@3200

@authup/kit

npm i https://pkg.pr.new/@authup/kit@3200

@authup/server-adapter-kit

npm i https://pkg.pr.new/@authup/server-adapter-kit@3200

@authup/server-adapter-node

npm i https://pkg.pr.new/@authup/server-adapter-node@3200

@authup/server-adapter-socket-io

npm i https://pkg.pr.new/@authup/server-adapter-socket-io@3200

@authup/server-adapter-web

npm i https://pkg.pr.new/@authup/server-adapter-web@3200

@authup/server-kit

npm i https://pkg.pr.new/@authup/server-kit@3200

@authup/server-test-kit

npm i https://pkg.pr.new/@authup/server-test-kit@3200

@authup/specs

npm i https://pkg.pr.new/@authup/specs@3200

commit: 1752459

@tada5hi tada5hi changed the title feat: mint the id_token at the token exchange for an authoritative sid (plan 042) feat: mint the id_token at the token exchange for an authoritative sid Jul 8, 2026
Base automatically changed from feat/oauth2-drop-implicit to master July 8, 2026 21:05
@tada5hi

tada5hi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tada5hi

tada5hi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jul 8, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/client-web/pages/clients/[id]/url.vue (1)

50-63: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Generated URL missing state and PKCE parameters required for public clients.

The response_type=code change is correct, but the generated URL omits state, code_challenge, and code_challenge_method — all now required for public clients per the verifier. The buildAuthorizeURL helper in client-web-kit includes all of these; this component manually constructs the URL instead. For public clients, the generated URL will be rejected by the server.

At minimum, adding state is trivial. Full PKCE support requires generating a code_verifier and computing its SHA-256 code_challenge, which is more involved but could leverage buildAuthorizeURL directly.

💡 Suggested improvement — add state and note PKCE requirement
 const generatedUrl = computed(() => {
     const link = new URL('authorize', config.public.apiUrl);
     link.searchParams.set('client_id', props.entity.id);
     link.searchParams.set('response_type', 'code');
+    link.searchParams.set('state', 'RANDOM_STATE');

     if (scopes.value.length > 0) {
         link.searchParams.set('scope', scopes.value.join(' '));
     }

For full PKCE support, consider using buildAuthorizeURL from @authup/client-web-kit instead of manual URL construction.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/client-web/pages/clients/`[id]/url.vue around lines 50 - 63, The
authorize URL built in the `computed` block of `url.vue` is missing the
public-client-required `state` and PKCE parameters. Update this logic so the
generated link includes `state`, `code_challenge`, and `code_challenge_method`
(or replace the manual URL assembly with `buildAuthorizeURL` from
`@authup/client-web-kit` to keep it consistent). If you keep manual
construction, generate a `code_verifier`/`code_challenge` pair and append them
alongside the existing `client_id`, `response_type`, `scope`, and `redirect_uri`
values.
🧹 Nitpick comments (1)
apps/server-core/test/unit/http/controllers/workflows/token/grant-idp-authorize.spec.ts (1)

241-291: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider asserting auth_time in the federated login id_token.

The PR objectives explicitly call out carrying auth_time on the authorization code blob, and the federated (session-less) flow is one of the three key cases. The test verifies sid alignment but doesn't check auth_time in the decoded id_token payload. Adding an assertion would close the coverage gap for this key objective.

♻️ Suggested addition
         const payload = JSON.parse(
             Buffer.from(tokenResponse.id_token!.split('.')[1], 'base64url').toString('utf8'),
-        ) as { sid?: unknown };
+        ) as { sid?: unknown, auth_time?: unknown };
 
         expect(typeof payload.sid).toEqual('string');
         expect((payload.sid as string).length).toBeGreaterThan(0);
+
+        expect(typeof payload.auth_time).toEqual('number');
 
         const introspection = await suite.client.token.introspect({ token: tokenResponse.access_token });
         expect(payload.sid).toEqual(introspection.session_id);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In
`@apps/server-core/test/unit/http/controllers/workflows/token/grant-idp-authorize.spec.ts`
around lines 241 - 291, The federated openid login test in
grant-idp-authorize.spec should also verify auth_time on the minted id_token,
since this flow is meant to carry it alongside sid. Update the existing openid
federated login assertion in the tokenResponse/id_token payload check to decode
and assert payload.auth_time is present and valid, using the same tokenResponse,
payload parsing, and introspection flow already in the test.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.agents/architecture.md:
- Around line 1114-1115: Update the auth-code flow description in the
architecture doc so it no longer says an openid-scoped code stores its id_token
on the code blob; the `id_token` field is removed from the auth-code blob and
should be described as minted during the `/token` exchange instead. Use the
surrounding auth-code and `/token` sections in `.agents/architecture.md` to keep
the narrative consistent with the current `auth_time`-based blob shape.

---

Outside diff comments:
In `@apps/client-web/pages/clients/`[id]/url.vue:
- Around line 50-63: The authorize URL built in the `computed` block of
`url.vue` is missing the public-client-required `state` and PKCE parameters.
Update this logic so the generated link includes `state`, `code_challenge`, and
`code_challenge_method` (or replace the manual URL assembly with
`buildAuthorizeURL` from `@authup/client-web-kit` to keep it consistent). If you
keep manual construction, generate a `code_verifier`/`code_challenge` pair and
append them alongside the existing `client_id`, `response_type`, `scope`, and
`redirect_uri` values.

---

Nitpick comments:
In
`@apps/server-core/test/unit/http/controllers/workflows/token/grant-idp-authorize.spec.ts`:
- Around line 241-291: The federated openid login test in
grant-idp-authorize.spec should also verify auth_time on the minted id_token,
since this flow is meant to carry it alongside sid. Update the existing openid
federated login assertion in the tokenResponse/id_token payload check to decode
and assert payload.auth_time is present and valid, using the same tokenResponse,
payload parsing, and introspection flow already in the test.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d7941a89-2c88-48d0-bb82-b02647346158

📥 Commits

Reviewing files that changed from the base of the PR and between 0c3108a and 1752459.

📒 Files selected for processing (26)
  • .agents/architecture.md
  • apps/client-web/pages/clients/[id]/url.vue
  • apps/server-core/src/adapters/http/controllers/entities/realm/module.ts
  • apps/server-core/src/adapters/http/controllers/workflows/authorize/module.ts
  • apps/server-core/src/adapters/http/controllers/workflows/authorize/types.ts
  • apps/server-core/src/adapters/http/controllers/workflows/token/module.ts
  • apps/server-core/src/adapters/http/controllers/workflows/token/types.ts
  • apps/server-core/src/app/modules/http/modules/controller.ts
  • apps/server-core/src/core/oauth2/authorization/code-request/validator.ts
  • apps/server-core/src/core/oauth2/authorization/code-request/verifier/module.ts
  • apps/server-core/src/core/oauth2/authorization/code/issuer/module.ts
  • apps/server-core/src/core/oauth2/authorization/code/issuer/types.ts
  • apps/server-core/src/core/oauth2/authorization/module.ts
  • apps/server-core/src/core/oauth2/authorization/types.ts
  • apps/server-core/src/core/oauth2/grant-types/authorize.ts
  • apps/server-core/src/core/oauth2/grant-types/types.ts
  • apps/server-core/test/unit/core/helpers/fake-oauth2-openid-token-issuer.ts
  • apps/server-core/test/unit/core/helpers/index.ts
  • apps/server-core/test/unit/core/oauth2/authorization/code-request/verifier/module.spec.ts
  • apps/server-core/test/unit/core/oauth2/authorization/module.spec.ts
  • apps/server-core/test/unit/core/oauth2/grant-types/authorize.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/authorize.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/token/grant-authorize.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/token/grant-idp-authorize.spec.ts
  • docs/src/guide/development/api-oauth2.md
  • packages/core-kit/src/domains/authorization-code/entity.ts
💤 Files with no reviewable changes (3)
  • apps/server-core/src/adapters/http/controllers/workflows/authorize/types.ts
  • apps/server-core/src/core/oauth2/authorization/types.ts
  • apps/server-core/src/adapters/http/controllers/workflows/authorize/module.ts

Comment thread .agents/architecture.md Resolved
tada5hi added 2 commits July 8, 2026 23:25
# Conflicts:
#	apps/server-core/src/adapters/http/controllers/workflows/authorize/module.ts
#	apps/server-core/src/adapters/http/controllers/workflows/authorize/types.ts
#	apps/server-core/src/app/modules/http/modules/controller.ts
#	apps/server-core/src/core/oauth2/authorization/module.ts
#	apps/server-core/src/core/oauth2/authorization/types.ts
#	apps/server-core/test/unit/core/oauth2/authorization/module.spec.ts
The response-types section still said an openid-scoped code stores its
id_token on the code blob and the /token exchange returns it, contradicting
the minting-site section in the same file: authorize() no longer mints or
stores the id_token — it stamps auth_time on the blob (the id_token field was
removed) and the /token exchange mints and returns it. Reported by CodeRabbit
on PR #3200.
@tada5hi
tada5hi merged commit cea6c40 into master Jul 9, 2026
5 checks passed
@tada5hi
tada5hi deleted the feat/oauth2-id-token-at-exchange branch July 9, 2026 07:57
@github-actions github-actions Bot mentioned this pull request Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants