support ID_CLI oidc client

This commit is contained in:
Johannes Zellner
2026-02-16 22:18:01 +01:00
parent a11a691788
commit c21011a17a
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class StorageAdapter {
const expiresAt = expiresIn ? new Date(Date.now() + (expiresIn * 1000)) : 0;
// only AccessToken of webadmin are stored in the db. Dashboard uses REST API and the token middleware looks up tokens in db
if (this.name === 'AccessToken' && (payload.clientId === oidcClients.ID_WEBADMIN || payload.clientId === oidcClients.ID_DEVELOPMENT)) {
if (this.name === 'AccessToken' && (payload.clientId === oidcClients.ID_WEBADMIN || payload.clientId === oidcClients.ID_DEVELOPMENT || payload.clientId === oidcClients.ID_CLI)) {
const expires = Date.now() + constants.DEFAULT_TOKEN_EXPIRATION_MSECS;
// oidc uses the username as accountId but accesstoken identifiers are userIds