Skip to content

refactor(oidc): remove name search param from provider list query - #5

Merged
hashbk merged 12 commits into
mainfrom
feat/install-id-login
Oct 2, 2026
Merged

hashbk merged 12 commits into
mainfrom
feat/install-id-login

Conversation

@hashbk

@hashbk hashbk commented Oct 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

…sword

- Add LoginType.INSTALL_ID constant
- Add AuthInstallIdService to verify credentials against system install_id
  and find-or-create admin user
- Wire INSTALL_ID case into AuthService login switch
- Import UpdateCheckModule in AuthModule for getInstallId()
- Add generateInstallIdToken in AuthTokenService and skip DB session
  check for install_id tokens
- Update CI workflows to use DATABK_TOKEN for ghcr.io push
RbacAuditService now requires UpdateCheckService as a constructor
dependency. Update test instantiations in audit.service.spec.ts and
rbac-authorization.service.spec.ts to provide a mocked UpdateCheckService
with getInstallId, fixing TS2554 type check errors.
install_id login does not persist a user row, so RbacAuthorizationService
threw 'Account does not exist or has been disabled' on every authenticated
request. Inject UpdateCheckService and short-circuit getCurrentUser when
userGuid matches the install_id, returning a transient in-memory admin User
that satisfies RBAC checks without a database lookup.
The install_id login flow produces a transient admin user that is never
persisted to the user table, so AdminGuard's database lookup always missed
and rejected the request with 403. Resolve the system install_id from
system_settings and treat it as an administrator before falling back to
the database check.
The warn log on install_id lookup failure was unnecessary noise; failures
now fall back silently to the regular database check.
@hashbk hashbk changed the title chore refactor(oidc): remove name search param from provider list query Oct 2, 2026
@hashbk
hashbk merged commit 38f6dec into main Oct 2, 2026
4 checks passed
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.

1 participant