Skip to content

feat: security hardening quick wins - #3227

Merged
tada5hi merged 5 commits into
masterfrom
feat/roadmap-wave0-hardening
Jul 11, 2026
Merged

tada5hi merged 5 commits into
masterfrom
feat/roadmap-wave0-hardening

Conversation

@tada5hi

@tada5hi tada5hi commented Jul 11, 2026 •

Copy link
Copy Markdown
Collaborator

Overview

First batch ("wave 0") of the roadmap quick wins — four independent, migration-free hardening items. One commit per item.

1. Cross-realm disclosure via fields projection (security fix)

rapiq honors a client fields projection over the repository default, so GET /<entity>?fields[<entity>]=id,name stripped realm_id from the SQL SELECT and the per-row realm_scope gate evaluated against a missing resource realm:

  • an ownOrNull-scoped reader received every realm's rows (cross-realm disclosure; for clients, fields[client]=id,secret could disclose foreign-realm plaintext client secrets),
  • while an own-scoped reader was wrongly denied its own rows.

Fix: shared applyRealmScopeSelect helper force-selects the gate-read columns after applyQuery in the user, robot, client, role-attribute and user-attribute adapters; the session adapter (fixed in #3187) is migrated onto the same helper. The regression spec pins all four exploitable directions and was verified to fail without the fix.

Audit note: role/scope/permission/policy list reads carry no per-row realm gate at all (their resourceRealmMatch usages are write paths), so there was nothing to bypass there — but their ungated list reads are a pre-existing gap worth a separate follow-up decision.

2. Meter /authorize + /token

The prometheus middleware skip() excluded exactly the security-critical endpoints. Only the /metrics self-scrape and root status excludes remain; both metered paths are fixed strings (no label-cardinality risk).

3. Configurable minimum password length

UserValidator accepted 3-character passwords and the reset flow enforced an inconsistent min(5). New passwordMinLength config (env PASSWORD_MIN_LENGTH, default 10) threads into user create/update, registration and password reset. Length-only, no composition rules (NIST 800-63B). New writes only — existing hashes keep verifying.

4. Enforce Client.grant_types

The column existed end-to-end but was documented "metadata only". A non-null (space/comma-delimited) list is now an opt-in allowlist enforced after client resolution in the authorization_code / refresh_token (incl. the bound-client-from-token path) / client_credentials / password grants and in the /authorize code-request verifier (deny before the consent UI). Violations fail with the new unauthorized_client error code (RFC 6749 §5.2, i18n entries in all four locales). null = allow-all, so upgrades are backward compatible.

Upgrade notes (for the next release)

  • New password writes reject values shorter than 10 characters unless PASSWORD_MIN_LENGTH is lowered; file-provisioned users with shorter passwords now fail provisioning validation at startup.
  • Deployments that stored decorative grant_types values will see those clients restricted to the listed grants (e.g. a client listing only authorization_code fails refresh with unauthorized_client). The provisioned per-realm web client already lists authorization_code refresh_token.

Verification

  • Full monorepo test suite green (15 projects; server-core 125 files / 1254 tests, incl. the new regression + enforcement specs).
  • check:types (tsconfig.test.json) and eslint clean.

Summary by CodeRabbit

  • New Features

    • Added configurable minimum password length for registration, password recovery, and user updates, with environment and configuration support.
    • OAuth2 clients can now restrict permitted grant types; unauthorized grant requests return clear localized errors.
    • Improved realm isolation so projected queries continue hiding data from other realms.
  • Bug Fixes

    • Corrected Prometheus metrics collection to include authorization and token endpoints while excluding self-scraping noise.
  • Documentation

    • Updated configuration and architecture guidance for password policies, OAuth2 grant restrictions, and realm isolation.

tada5hi added 5 commits July 11, 2026 11:31
…dMany adapters

A client fields projection (e.g. ?fields[user]=id,name) stripped realm_id
from the SQL SELECT, so the per-row realm_scope gate evaluated against a
missing resource realm: ownOrNull-scoped readers received every realm's
rows (cross-realm disclosure - for clients including a plaintext-secret
gate misfire), while own-scoped readers were wrongly denied their own
rows. The shared applyRealmScopeSelect helper now re-adds realm_id plus
the other gate-read columns after applyQuery in the user, robot, client,
role-attribute and user-attribute adapters (session migrated onto the
same helper). Role/scope/permission/policy list reads carry no per-row
realm gate and are unaffected.
The prometheus middleware skip() excluded /authorize and /token, leaving
the generic per-route histogram blind to the security-critical endpoints.
Only the /metrics self-scrape and the root status endpoint stay excluded;
both metered paths are fixed strings, so there is no label-cardinality
risk.
The UserValidator accepted 3-character passwords and the password-reset
flow enforced an inconsistent minimum of 5. The floor is now a validator
option defaulting to 10 (NIST 800-63B posture: length only, no
composition rules), driven by the new passwordMinLength config key
(env PASSWORD_MIN_LENGTH) and threaded to every password-write site:
user create/update, registration and password reset. Applies to new
writes only - existing password hashes keep verifying.
Client.grant_types existed end-to-end but was never read by an
enforcement path. A non-null (space- or comma-delimited) list is now an
opt-in allowlist checked after client resolution in the
authorization_code, refresh_token (incl. the bound-client-from-token
path), client_credentials and password grants, and in the /authorize
code-request verifier (authorization_code membership, denied before the
consent UI renders). Violations fail with the new unauthorized_client
error code (RFC 6749 §5.2). A null column keeps allow-all semantics, so
upgrades are backward compatible; deployments that stored decorative
grant_types values should review them before upgrading.
Copilot AI review requested due to automatic review settings July 11, 2026 09:33

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 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

The changes add configurable password length enforcement, OAuth2 client grant allowlisting, realm-safe field projections, and Prometheus middleware coverage. Related configuration, service wiring, error contracts, repository helpers, tests, and documentation are updated.

Changes

Password policy configuration

Layer / File(s) Summary
Password policy contracts and validation
packages/core-kit/src/domains/user/*, apps/server-core/src/app/modules/config/*
Shared password limits and configurable passwordMinLength parsing, normalization, typing, and bounds validation are added.
Password policy service wiring
apps/server-core/src/core/entities/user/*, apps/server-core/src/core/identity/*, apps/server-core/src/app/modules/http/modules/controller.ts
The configured minimum is passed through user, registration, and password-recovery validation paths.
Password policy verification and documentation
apps/server-core/test/unit/config/*, apps/server-core/test/unit/core/**/*, packages/core-kit/test/*, docs/src/guide/deployment/*, .agents/architecture.md
Tests and documentation cover default, configured, and boundary password lengths.

OAuth2 grant allowlisting

Layer / File(s) Summary
Unauthorized-client error contract
packages/errors/*, packages/specs/src/oauth2/*, packages/i18n/src/catalogs/*
A dedicated OAuth2 unauthorized-client error, type guard, error code, exports, and translations are added.
Grant allowlist enforcement
apps/server-core/src/core/oauth2/*, apps/server-core/src/adapters/http/adapters/oauth2/*
Client grant_types values are enforced for authorization-code, client-credentials, password, and refresh-token flows.
Grant allowlist coverage
apps/server-core/test/unit/core/oauth2/*, apps/server-core/test/unit/http/controllers/workflows/token/*, .agents/architecture.md, apps/server-core/src/core/entities/client/web-client.ts
Tests and architecture documentation cover allowed, rejected, null, delimited, and unknown grant lists.

Realm-scoped projections

Layer / File(s) Summary
Realm projection helper and repository integration
apps/server-core/src/app/modules/database/repositories/*, apps/server-core/src/app/modules/authentication/repositories/session.ts
applyRealmScopeSelect preserves realm and gate-specific columns in repository query projections.
Projection isolation regression coverage
apps/server-core/test/unit/http/controllers/entities/realm-isolation-field-projection.spec.ts, .agents/architecture.md
Regression tests verify foreign-realm rows remain hidden when projections omit realm_id.

Prometheus path coverage

Layer / File(s) Summary
Prometheus request filtering
apps/server-core/src/adapters/http/middleware/built-in/prometheus.ts, apps/server-core/test/unit/http/middleware/prometheus.spec.ts
The skip predicate ordering is updated, with tests for metrics self-scrapes and token, authorize, and root paths.

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

Sequence Diagram(s)

sequenceDiagram
  participant OAuthClient
  participant TokenOrAuthorizeEndpoint
  participant GrantVerifier
  participant ErrorResponse
  OAuthClient->>TokenOrAuthorizeEndpoint: submit grant request
  TokenOrAuthorizeEndpoint->>GrantVerifier: resolve client and requested grant
  GrantVerifier->>ErrorResponse: reject unauthorized grant
  GrantVerifier-->>TokenOrAuthorizeEndpoint: continue allowed flow
Loading

Possibly related PRs

  • authup/authup#3175: Modifies the adjacent OAuth2 password-grant client and user resolution flow.
  • authup/authup#3187: Changes session repository projection handling for realm-scope enforcement.
  • authup/authup#3194: Modifies authorization-code request verification in the same OAuth2 path.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 22.22% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title is generic and doesn't clearly describe the main changes, such as realm-scope projection fixes, password minimums, or OAuth grant enforcement. Use a specific title that names the primary hardening change(s), e.g. enforce OAuth grant allowlists and configurable password minimums.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
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 docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/roadmap-wave0-hardening

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

apps/server-core/src/adapters/http/adapters/oauth2/grant-types/authorize.ts

Oops! Something went wrong! :(

ESLint: 10.6.0

ConfigError: Config (unnamed): Unexpected key "0" found.
at rethrowConfigError (/node_modules/@eslint/config-array/dist/cjs/index.cjs:343:8)
at /node_modules/@eslint/config-array/dist/cjs/index.cjs:1407:5
at Array.reduce ()
at FlatConfigArray.getConfigWithStatus (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1400:43)
at FlatConfigArray.getConfig (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1429:15)
at /node_modules/eslint/lib/eslint/eslint.js:627:27
at Array.map ()
at lintFilesWithoutMultithreading (/node_modules/eslint/lib/eslint/eslint.js:625:13)
at ESLint.lintFiles (/node_modules/eslint/lib/eslint/eslint.js:1073:20)
at async Object.execute (/node_modules/eslint/lib/cli.js:386:14)

apps/server-core/src/adapters/http/adapters/oauth2/grant-types/client-credentials.ts

Oops! Something went wrong! :(

ESLint: 10.6.0

ConfigError: Config (unnamed): Unexpected key "0" found.
at rethrowConfigError (/node_modules/@eslint/config-array/dist/cjs/index.cjs:343:8)
at /node_modules/@eslint/config-array/dist/cjs/index.cjs:1407:5
at Array.reduce ()
at FlatConfigArray.getConfigWithStatus (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1400:43)
at FlatConfigArray.getConfig (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1429:15)
at /node_modules/eslint/lib/eslint/eslint.js:627:27
at Array.map ()
at lintFilesWithoutMultithreading (/node_modules/eslint/lib/eslint/eslint.js:625:13)
at ESLint.lintFiles (/node_modules/eslint/lib/eslint/eslint.js:1073:20)
at async Object.execute (/node_modules/eslint/lib/cli.js:386:14)

apps/server-core/src/adapters/http/adapters/oauth2/grant-types/password.ts

Oops! Something went wrong! :(

ESLint: 10.6.0

ConfigError: Config (unnamed): Unexpected key "0" found.
at rethrowConfigError (/node_modules/@eslint/config-array/dist/cjs/index.cjs:343:8)
at /node_modules/@eslint/config-array/dist/cjs/index.cjs:1407:5
at Array.reduce ()
at FlatConfigArray.getConfigWithStatus (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1400:43)
at FlatConfigArray.getConfig (/node_modules/@eslint/config-array/dist/cjs/index.cjs:1429:15)
at /node_modules/eslint/lib/eslint/eslint.js:627:27
at Array.map ()
at lintFilesWithoutMultithreading (/node_modules/eslint/lib/eslint/eslint.js:625:13)
at ESLint.lintFiles (/node_modules/eslint/lib/eslint/eslint.js:1073:20)
at async Object.execute (/node_modules/eslint/lib/cli.js:386:14)

  • 46 others

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 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

authup

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

@authup/client-web

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

@authup/server-core

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

@authup/access

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

@authup/client-web-kit

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

@authup/client-web-kit-theme

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

@authup/client-web-nuxt

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

@authup/client-web-theme

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

@authup/core-http-kit

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

@authup/core-kit

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

@authup/core-realtime-kit

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

@authup/errors

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

@authup/i18n

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

@authup/kit

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

@authup/server-adapter-kit

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

@authup/server-adapter-node

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

@authup/server-adapter-socket-io

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

@authup/server-adapter-web

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

@authup/server-kit

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

@authup/server-test-kit

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

@authup/specs

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

commit: 75c8c3c

@tada5hi

tada5hi commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 11, 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 11, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jul 11, 2026 •

Copy link
Copy Markdown
✅ Action performed

Full review finished.


Your plan includes PR reviews subject to rate limits. More reviews will be available in 19 minutes.

@tada5hi

tada5hi commented Jul 11, 2026

Copy link
Copy Markdown
Collaborator Author

@coderabbitai full review

@coderabbitai

coderabbitai Bot commented Jul 11, 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.

🧹 Nitpick comments (3)
packages/specs/src/oauth2/error/client-unauthorized.ts (1)

30-32: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider including the rejected grant type in data for programmatic access.

The grantType factory embeds the rejected grant type only in the message string. Callers or middleware that need to inspect which grant was rejected must parse the message. Adding data: { grant_type: grantType } would allow structured access without message parsing, and the constructor already merges options.data into the final payload.

♻️ Optional: add grant_type to error data
 static grantType(grantType: string) {
-    return new OAuth2ClientUnauthorizedError({ message: `The client is not authorized to use the '${grantType}' grant type` });
+    return new OAuth2ClientUnauthorizedError({
+        message: `The client is not authorized to use the '${grantType}' grant type`,
+        data: { grant_type: grantType },
+    });
 }
🤖 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 `@packages/specs/src/oauth2/error/client-unauthorized.ts` around lines 30 - 32,
Update the OAuth2ClientUnauthorizedError.grantType factory to include the
rejected grant type in the structured error data as grant_type, while preserving
the existing message and constructor flow.
apps/server-core/test/unit/core/oauth2/client/grant-type.spec.ts (1)

44-48: 📐 Maintainability & Code Quality | 🔵 Trivial | 💤 Low value

Consider strengthening the "inert" test to also verify known values still work alongside unknown ones.

The current test verifies that grant_types: 'foo bar' rejects PASSWORD, which shows unknown values don't grant blanket access. However, it doesn't verify that a known value coexisting with unknown values still passes — e.g., 'foo authorization_code' should still allow AUTHORIZATION_CODE. Adding that assertion would make the "inert" semantics fully bidirectional.

♻️ Optional: add bidirectional inertness assertion
 it('should treat unknown values in the list as inert', () => {
     const client = buildClient('foo bar');
     expect(() => assertClientGrantAllowed(client, OAuth2TokenGrant.PASSWORD))
         .toThrow(expect.objectContaining({ code: ErrorCode.OAUTH_CLIENT_UNAUTHORIZED }));
+
+    // Unknown values don't break known values either
+    const clientWithKnown = buildClient('foo authorization_code');
+    expect(() => assertClientGrantAllowed(clientWithKnown, OAuth2TokenGrant.AUTHORIZATION_CODE)).not.toThrow();
 });
🤖 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/core/oauth2/client/grant-type.spec.ts` around
lines 44 - 48, Strengthen the test “should treat unknown values in the list as
inert” by also building a client with unknown and known grants, such as “foo
authorization_code”, and asserting assertClientGrantAllowed permits
OAuth2TokenGrant.AUTHORIZATION_CODE. Preserve the existing rejection assertion
proving unknown-only values do not authorize PASSWORD.
packages/core-kit/src/domains/user/validator.ts (1)

127-131: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Consider adding bounds validation for passwordMinLength as defense-in-depth.

The passwordMinLength option has no runtime bounds check in the validator. If a caller passes 0, negative, or a value exceeding USER_PASSWORD_MAX_LENGTH, the Zod schema would either allow empty passwords or reject all passwords. The config layer should validate this, but since UserValidator is a public class that can be instantiated directly (as shown in tests), a simple clamp or guard would prevent silent security weakening.

🛡️ Proposed defense-in-depth clamp
         createValidator(
             z.string()
-                .min(this.options.passwordMinLength ?? USER_PASSWORD_MIN_LENGTH)
+                .min(
+                    Math.max(
+                        1,
+                        Math.min(
+                            this.options.passwordMinLength ?? USER_PASSWORD_MIN_LENGTH,
+                            USER_PASSWORD_MAX_LENGTH,
+                        ),
+                    ),
+                )
                 .max(USER_PASSWORD_MAX_LENGTH),
         ),
🤖 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 `@packages/core-kit/src/domains/user/validator.ts` around lines 127 - 131,
Validate the password minimum length used in UserValidator’s password schema
before passing it to z.string().min(): clamp or guard the resolved
passwordMinLength to remain within the valid range of 1 through
USER_PASSWORD_MAX_LENGTH. Preserve USER_PASSWORD_MAX_LENGTH as the upper bound
and ensure direct UserValidator construction cannot permit empty passwords or
make every password invalid.
🤖 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.

Nitpick comments:
In `@apps/server-core/test/unit/core/oauth2/client/grant-type.spec.ts`:
- Around line 44-48: Strengthen the test “should treat unknown values in the
list as inert” by also building a client with unknown and known grants, such as
“foo authorization_code”, and asserting assertClientGrantAllowed permits
OAuth2TokenGrant.AUTHORIZATION_CODE. Preserve the existing rejection assertion
proving unknown-only values do not authorize PASSWORD.

In `@packages/core-kit/src/domains/user/validator.ts`:
- Around line 127-131: Validate the password minimum length used in
UserValidator’s password schema before passing it to z.string().min(): clamp or
guard the resolved passwordMinLength to remain within the valid range of 1
through USER_PASSWORD_MAX_LENGTH. Preserve USER_PASSWORD_MAX_LENGTH as the upper
bound and ensure direct UserValidator construction cannot permit empty passwords
or make every password invalid.

In `@packages/specs/src/oauth2/error/client-unauthorized.ts`:
- Around line 30-32: Update the OAuth2ClientUnauthorizedError.grantType factory
to include the rejected grant type in the structured error data as grant_type,
while preserving the existing message and constructor flow.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: c6d69f59-9c1e-450a-87a5-e1905ed8331b

📥 Commits

Reviewing files that changed from the base of the PR and between 3171e1e and 75c8c3c.

📒 Files selected for processing (51)
  • .agents/architecture.md
  • apps/server-core/src/adapters/http/adapters/oauth2/grant-types/authorize.ts
  • apps/server-core/src/adapters/http/adapters/oauth2/grant-types/client-credentials.ts
  • apps/server-core/src/adapters/http/adapters/oauth2/grant-types/password.ts
  • apps/server-core/src/adapters/http/adapters/oauth2/grant-types/refresh_token.ts
  • apps/server-core/src/adapters/http/middleware/built-in/prometheus.ts
  • apps/server-core/src/app/modules/authentication/repositories/session.ts
  • apps/server-core/src/app/modules/config/constants.ts
  • apps/server-core/src/app/modules/config/normalize.ts
  • apps/server-core/src/app/modules/config/read/env.ts
  • apps/server-core/src/app/modules/config/types.ts
  • apps/server-core/src/app/modules/config/validator.ts
  • apps/server-core/src/app/modules/database/repositories/client/repository.ts
  • apps/server-core/src/app/modules/database/repositories/helpers.ts
  • apps/server-core/src/app/modules/database/repositories/robot/repository.ts
  • apps/server-core/src/app/modules/database/repositories/role-attribute/repository.ts
  • apps/server-core/src/app/modules/database/repositories/user-attribute/repository.ts
  • apps/server-core/src/app/modules/database/repositories/user/repository.ts
  • apps/server-core/src/app/modules/http/modules/controller.ts
  • apps/server-core/src/core/entities/client/web-client.ts
  • apps/server-core/src/core/entities/user/service.ts
  • apps/server-core/src/core/identity/password-recovery/service.ts
  • apps/server-core/src/core/identity/password-recovery/types.ts
  • apps/server-core/src/core/identity/registration/service.ts
  • apps/server-core/src/core/identity/registration/types.ts
  • apps/server-core/src/core/oauth2/authorization/code-request/verifier/module.ts
  • apps/server-core/src/core/oauth2/client/grant-type.ts
  • apps/server-core/src/core/oauth2/client/index.ts
  • apps/server-core/test/unit/config/index.spec.ts
  • apps/server-core/test/unit/core/entities/user/service.spec.ts
  • apps/server-core/test/unit/core/identity/password-recovery/service.spec.ts
  • apps/server-core/test/unit/core/identity/registration/service.spec.ts
  • apps/server-core/test/unit/core/oauth2/authorization/code-request/verifier/module.spec.ts
  • apps/server-core/test/unit/core/oauth2/client/grant-type.spec.ts
  • apps/server-core/test/unit/http/controllers/entities/realm-isolation-field-projection.spec.ts
  • apps/server-core/test/unit/http/controllers/workflows/token/grant-types-enforcement.spec.ts
  • apps/server-core/test/unit/http/middleware/prometheus.spec.ts
  • docs/src/guide/deployment/configuration-server-core.md
  • packages/core-kit/src/domains/user/constants.ts
  • packages/core-kit/src/domains/user/index.ts
  • packages/core-kit/src/domains/user/types.ts
  • packages/core-kit/src/domains/user/validator.ts
  • packages/core-kit/test/unit/domains/user.spec.ts
  • packages/errors/src/constants.ts
  • packages/i18n/src/catalogs/de/error.ts
  • packages/i18n/src/catalogs/en/error.ts
  • packages/i18n/src/catalogs/es/error.ts
  • packages/i18n/src/catalogs/fr/error.ts
  • packages/specs/src/oauth2/check.ts
  • packages/specs/src/oauth2/error/client-unauthorized.ts
  • packages/specs/src/oauth2/error/index.ts

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