Skip to content

Sync-in · Sovereign platform for file storage, sharing, synchronization, and collaboration.

feat(auth:oidc): enhance OIDC configuration

johaven8bcf35d2639c
diff --git a/backend/src/authentication/auth.controller.ts b/backend/src/authentication/auth.controller.ts
index 7a6fa152..6eedc150 100755
--- a/backend/src/authentication/auth.controller.ts
+++ b/backend/src/authentication/auth.controller.ts
@@ -21,6 +21,7 @@ import { AuthLocalGuard } from './guards/auth-local.guard'
import { AuthTokenRefreshGuard } from './guards/auth-token-refresh.guard'
import { FastifyAuthenticatedRequest } from './interfaces/auth-request.interface'
import { TOKEN_TYPE } from './interfaces/token.interface'
+import type { AuthOIDCSettings } from './providers/oidc/auth-oidc.interfaces'
import { AuthProvider2FA } from './providers/two-fa/auth-provider-two-fa.service'
import { AuthTwoFaGuard } from './providers/two-fa/auth-two-fa-guard'
import { TwoFaResponseDto, TwoFaVerifyDto, TwoFaVerifyWithPasswordDto } from './providers/two-fa/auth-two-fa.dtos'
@@ -67,6 +68,12 @@ export class AuthController {
return this.authManager.getTokens(user, true)
}
+ @Get(AUTH_ROUTE.SETTINGS)
+ @AuthTokenSkip()
+ authSettings(): AuthOIDCSettings | false {
+ return this.authManager.authSettings()
+ }
+
/* TWO-FA Part */
@Get(`${AUTH_ROUTE.TWO_FA_BASE}/${AUTH_ROUTE.TWO_FA_ENABLE}`)
diff --git a/backend/src/authentication/auth.service.ts b/backend/src/authentication/auth.service.ts
index e1273e2a..74101015 100755
--- a/backend/src/authentication/auth.service.ts
+++ b/backend/src/authentication/auth.service.ts
@@ -14,10 +14,13 @@ import { convertHumanTimeToSeconds } from '../common/functions'
import { currentTimeStamp } from '../common/shared'
import { configuration, serverConfig } from '../configuration/config.environment'
import { CSRF_ERROR, CSRF_KEY, TOKEN_2FA_TYPES, TOKEN_PATHS, TOKEN_TYPES } from './constants/auth'
+import { API_OIDC_LOGIN } from './constants/routes'
import { LoginResponseDto, LoginVerify2FaDto } from './dto/login-response.dto'
import { TokenResponseDto } from './dto/token-response.dto'
import { JwtIdentity2FaPayload, JwtIdentityPayload, JwtPayload } from './interfaces/jwt-payload.interface'
import { TOKEN_TYPE } from './interfaces/token.interface'
+import { AUTH_PROVIDER } from './providers/auth-providers.constants'
+import type { AuthOIDCSettings } from './providers/oidc/auth-oidc.interfaces'
@Injectable()
export class AuthManager {
@@ -138,6 +141,18 @@ export class AuthManager {
}
}
+ authSettings(): AuthOIDCSettings | false {
+ if (configuration.auth.method !== AUTH_PROVIDER.OIDC) {
+ return false
+ }
+ return {
+ loginUrl: API_OIDC_LOGIN,
+ autoRedirect: configuration.auth.oidc.options.autoRedirect,
+ enablePasswordAuth: configuration.auth.oidc.options.enablePasswordAuth,
+ buttonText: configuration.auth.oidc.options.buttonText
+ }
+ }
+
private jwtSign(user: UserModel, type: TOKEN_TYPE, expiration: number, csrfToken?: string): Promise<string> {
return this.jwt.signAsync(
{
diff --git a/backend/src/authentication/constants/routes.ts b/backend/src/authentication/constants/routes.ts
index 375e0806..d4e4adcf 100644
--- a/backend/src/authentication/constants/routes.ts
+++ b/backend/src/authentication/constants/routes.ts
@@ -11,6 +11,7 @@ export const AUTH_ROUTE = {
REFRESH: 'refresh',
TOKEN: 'token',
TOKEN_REFRESH: 'token/refresh',
+ SETTINGS: 'settings',
WS: 'socket.io',
TWO_FA_BASE: '2fa',
TWO_FA_ENABLE: 'enable',
@@ -19,7 +20,7 @@ export const AUTH_ROUTE = {
TWO_FA_ADMIN_RESET_USER: 'reset/user',
OIDC_LOGIN: 'oidc/login',
OIDC_CALLBACK: 'oidc/callback',
- OIDC_LOGOUT: 'oidc/logout'
+ OIDC_SETTINGS: 'oidc/settings'
}
export const API_AUTH_LOGIN = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.LOGIN}`
@@ -27,8 +28,10 @@ export const API_AUTH_LOGOUT = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.LOGOUT}`
export const API_AUTH_REFRESH = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.REFRESH}`
export const API_AUTH_TOKEN = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TOKEN}`
export const API_AUTH_TOKEN_REFRESH = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TOKEN_REFRESH}`
+export const API_AUTH_SETTINGS = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.SETTINGS}`
export const API_AUTH_WS = `/${AUTH_ROUTE.WS}`
export const API_TWO_FA_ENABLE = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TWO_FA_BASE}/${AUTH_ROUTE.TWO_FA_ENABLE}`
export const API_TWO_FA_DISABLE = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TWO_FA_BASE}/${AUTH_ROUTE.TWO_FA_DISABLE}`
export const API_TWO_FA_LOGIN_VERIFY = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TWO_FA_BASE}/${AUTH_ROUTE.TWO_FA_LOGIN_VERIFY}`
export const API_TWO_FA_ADMIN_RESET_USER = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.TWO_FA_BASE}/${AUTH_ROUTE.TWO_FA_ADMIN_RESET_USER}`
+export const API_OIDC_LOGIN = `${AUTH_ROUTE.BASE}/${AUTH_ROUTE.OIDC_LOGIN}`
diff --git a/backend/src/authentication/providers/oidc/auth-oidc.config.ts b/backend/src/authentication/providers/oidc/auth-oidc.config.ts
index 981e6076..5e59dedb 100644
--- a/backend/src/authentication/providers/oidc/auth-oidc.config.ts
+++ b/backend/src/authentication/providers/oidc/auth-oidc.config.ts
@@ -4,49 +4,100 @@
* See the LICENSE file for licensing details
*/
-import { Transform } from 'class-transformer'
-import { IsBoolean, IsEnum, IsNotEmpty, IsOptional, IsString } from 'class-validator'
+import { Transform, Type } from 'class-transformer'
+import {
+ IsArray,
+ IsBoolean,
+ IsDefined,
+ IsEnum,
+ IsNotEmpty,
+ IsNotEmptyObject,
+ IsObject,
+ IsOptional,
+ IsString,
+ Matches,
+ ValidateNested
+} from 'class-validator'
+import { USER_PERMISSION } from '../../../applications/users/constants/user'
import { OAuthTokenEndpoint } from './auth-oidc.constants'
-export class AuthMethodOIDCConfig {
- @IsString()
- @IsNotEmpty()
- issuerUrl: string
-
- @IsString()
- @IsNotEmpty()
- clientId: string
-
+export class AuthMethodOIDCSecurityConfig {
@IsString()
- @IsNotEmpty()
- clientSecret: string
+ @Matches(/\bopenid\b/, { message: 'OIDC scope must include "openid"' })
+ scope = 'openid email profile'
- @IsOptional()
@Transform(({ value }) => value || OAuthTokenEndpoint.ClientSecretBasic)
@IsEnum(OAuthTokenEndpoint)
- clientAuthMethod: OAuthTokenEndpoint = OAuthTokenEndpoint.ClientSecretBasic
+ tokenEndpointAuthMethod: OAuthTokenEndpoint = OAuthTokenEndpoint.ClientSecretBasic
@IsString()
@IsNotEmpty()
- redirectUri: string
+ tokenSigningAlg = 'RS256'
@IsOptional()
@IsString()
- scope?: string
+ userInfoSigningAlg? = undefined
+
+ @IsOptional()
+ @IsBoolean()
+ skipSubjectCheck? = false
+}
+export class AuthMethodOIDCOptionsConfig {
@IsOptional()
@IsBoolean()
autoCreateUser? = true
+ @IsOptional()
+ @IsArray()
+ @IsEnum(USER_PERMISSION, { each: true })
+ autoCreatePermissions?: USER_PERMISSION[] = []
+
@IsOptional()
@IsBoolean()
- enablePasswordAuth? = true
+ autoRedirect? = false
@IsOptional()
@IsBoolean()
- skipSubjectCheck? = false
+ enablePasswordAuth? = true
@IsOptional()
@IsString()
adminRoleOrGroup?: string
+
+ @IsString()
+ @IsNotEmpty()
+ buttonText: string = 'Continue with OpenID Connect'
+}
+
+export class AuthMethodOIDCConfig {
+ @IsString()
+ @IsNotEmpty()
+ issuerUrl: string
+
+ @IsString()
+ @IsNotEmpty()
+ clientId: string
+
+ @IsString()
+ @IsNotEmpty()
+ clientSecret: string
+
+ @IsString()
+ @IsNotEmpty()
+ redirectUri: string
+
+ @IsDefined()
+ @IsNotEmptyObject()
+ @IsObject()
+ @ValidateNested()
+ @Type(() => AuthMethodOIDCOptionsConfig)
+ options: AuthMethodOIDCOptionsConfig = new AuthMethodOIDCOptionsConfig()
+
+ @IsDefined()
+ @IsNotEmptyObject()
+ @IsObject()
+ @ValidateNested()
+ @Type(() => AuthMethodOIDCSecurityConfig)
+ security: AuthMethodOIDCSecurityConfig = new AuthMethodOIDCSecurityConfig()
}
diff --git a/backend/src/authentication/providers/oidc/auth-oidc.controller.ts b/backend/src/authentication/providers/oidc/auth-oidc.controller.ts
index feeb32b6..3b775628 100644
--- a/backend/src/authentication/providers/oidc/auth-oidc.controller.ts
+++ b/backend/src/authentication/providers/oidc/auth-oidc.controller.ts
@@ -17,13 +17,13 @@ import { AuthProviderOIDC } from './auth-provider-oidc.service'
export class AuthOIDCController {
constructor(
private readonly authManager: AuthManager,
- private readonly authMethodOidc: AuthProviderOIDC
+ private readonly authProviderOIDC: AuthProviderOIDC
) {}
@Get(AUTH_ROUTE.OIDC_LOGIN)
@AuthTokenSkip()
async oidcLogin(@Res() res: FastifyReply): Promise<void> {
- const url = await this.authMethodOidc.getAuthorizationUrl(res)
+ const url = await this.authProviderOIDC.getAuthorizationUrl(res)
// Redirect to OIDC provider
return res.redirect(url, HttpStatus.FOUND)
}
@@ -31,8 +31,8 @@ export class AuthOIDCController {
@Get(AUTH_ROUTE.OIDC_CALLBACK)
@AuthTokenSkip()
async oidcCallback(@Query() query: Record<string, string>, @Req() req: FastifyRequest, @Res() res: FastifyReply): Promise<void> {
- const user: UserModel = await this.authMethodOidc.handleCallback(req, res, query)
+ const user: UserModel = await this.authProviderOIDC.handleCallback(req, res, query)
const r: LoginResponseDto = await this.authManager.setCookies(user, res, false)
- return res.redirect(this.authMethodOidc.getRedirectCallbackUrl(r.token.access_expiration, r.token.refresh_expiration), HttpStatus.FOUND)
+ return res.redirect(this.authProviderOIDC.getRedirectCallbackUrl(r.token.access_expiration, r.token.refresh_expiration), HttpStatus.FOUND)
}
}
diff --git a/backend/src/authentication/providers/oidc/auth-oidc.interfaces.ts b/backend/src/authentication/providers/oidc/auth-oidc.interfaces.ts
new file mode 100644
index 00000000..c6c3fd03
--- /dev/null
+++ b/backend/src/authentication/providers/oidc/auth-oidc.interfaces.ts
@@ -0,0 +1,12 @@
+/*
+ * Copyright (C) 2012-2026 Johan Legrand <[email protected]>
+ * This file is part of Sync-in | The open source file sync and share solution
+ * See the LICENSE file for licensing details
+ */
+
+export interface AuthOIDCSettings {
+ loginUrl: string
+ autoRedirect: boolean
+ enablePasswordAuth: boolean
+ buttonText: string
+}
diff --git a/backend/src/authentication/providers/oidc/auth-provider-oidc.service.ts b/backend/src/authentication/providers/oidc/auth-provider-oidc.service.ts
index 39f70d12..d0e75a4f 100644
--- a/backend/src/authentication/providers/oidc/auth-provider-oidc.service.ts
+++ b/backend/src/authentication/providers/oidc/auth-provider-oidc.service.ts
@@ -9,6 +9,7 @@ import { FastifyReply, FastifyRequest } from 'fastify'
import {
allowInsecureRequests,
authorizationCodeGrant,
+ AuthorizationResponseError,
calculatePKCECodeChallenge,
ClientSecretBasic,
ClientSecretPost,
@@ -63,24 +64,25 @@ export class AuthProviderOIDC implements AuthProvider {
async getAuthorizationUrl(res: FastifyReply): Promise<string> {
const config = await this.getConfig()
- // Generate state and nonce for CSRF protection
+ // state: CSRF protection, nonce: binds the ID Token to this auth request (replay protection)
const state = randomState()
const nonce = randomNonce()
- const codeVerifier = randomPKCECodeVerifier()
+ const supportsPKCE = config.serverMetadata().supportsPKCE()
+ const codeVerifier = supportsPKCE ? randomPKCECodeVerifier() : undefined
const authUrl = new URL(config.serverMetadata().authorization_endpoint!)
authUrl.searchParams.set('client_id', this.oidcConfig.clientId!)
authUrl.searchParams.set('redirect_uri', this.oidcConfig.redirectUri)
authUrl.searchParams.set('response_type', 'code')
- authUrl.searchParams.set('scope', this.oidcConfig.scope || 'openid email profile')
- if (config.serverMetadata().supportsPKCE()) {
- const codeChallenge = await calculatePKCECodeChallenge(codeVerifier)
+ authUrl.searchParams.set('scope', this.oidcConfig.security.scope)
+ authUrl.searchParams.set('state', state)
+ authUrl.searchParams.set('nonce', nonce)
+ if (supportsPKCE) {
+ const codeChallenge = await calculatePKCECodeChallenge(codeVerifier!)
authUrl.searchParams.set('code_challenge', codeChallenge)
authUrl.searchParams.set('code_challenge_method', 'S256')
}
- authUrl.searchParams.set('state', state)
- authUrl.searchParams.set('nonce', nonce)
// Avoid cache
res
@@ -90,22 +92,18 @@ export class AuthProviderOIDC implements AuthProvider {
.header('X-Robots-Tag', 'noindex, nofollow')
.header('Referrer-Policy', 'no-referrer')
- // Store state, nonce, and codeVerifier in httpOnly cookies (10 minutes expiration)
+ // Store state, nonce, and codeVerifier in httpOnly cookies (expires in 10 minutes)
res.setCookie(OAuthCookie.State, state, OAuthCookieSettings)
res.setCookie(OAuthCookie.Nonce, nonce, OAuthCookieSettings)
- res.setCookie(OAuthCookie.CodeVerifier, codeVerifier, OAuthCookieSettings)
-
+ if (supportsPKCE) {
+ res.setCookie(OAuthCookie.CodeVerifier, codeVerifier, OAuthCookieSettings)
+ }
return authUrl.toString()
}
async handleCallback(req: FastifyRequest, res: FastifyReply, query: Record<string, string>): Promise<UserModel> {
const config = await this.getConfig()
-
- // Clear temporary OIDC cookies
- Object.values(OAuthCookie).forEach((value) => {
- res.clearCookie(value, { path: '/' })
- })
-
+ const supportsPKCE = config.serverMetadata().supportsPKCE()
const [expectedState, expectedNonce, codeVerifier] = [
req.cookies[OAuthCookie.State],
req.cookies[OAuthCookie.Nonce],
@@ -117,11 +115,11 @@ export class AuthProviderOIDC implements AuthProvider {
throw new HttpException('OAuth state is missing', HttpStatus.BAD_REQUEST)
}
- if (!codeVerifier?.length) {
+ if (supportsPKCE && !codeVerifier?.length) {
throw new HttpException('OAuth code verifier is missing', HttpStatus.BAD_REQUEST)
}
- const pkceCodeVerifier = config.serverMetadata().supportsPKCE() ? codeVerifier : undefined
+ const pkceCodeVerifier = supportsPKCE ? codeVerifier : undefined
const callbackParams = new URLSearchParams(query)
// Exchange authorization code for tokens
@@ -142,8 +140,9 @@ export class AuthProviderOIDC implements AuthProvider {
throw new HttpException('Unexpected profile response, no `sub`', HttpStatus.BAD_REQUEST)
}
- // Get user info from the userinfo endpoint (requires access token and subject from ID token)
- const subject = this.oidcConfig.skipSubjectCheck ? skipSubjectCheck : claims.sub
+ // ID token claims may be minimal depending on the IdP; use the UserInfo endpoint to retrieve user details.
+ // Get user info from the userinfo endpoint (requires access token and subject from ID token).
+ const subject = this.oidcConfig.security.skipSubjectCheck ? skipSubjectCheck : claims.sub
const userInfo: UserInfoResponse = await fetchUserInfo(config, tokens.access_token, subject)
if (!userInfo.sub) {
@@ -152,10 +151,19 @@ export class AuthProviderOIDC implements AuthProvider {
// Process the user info and create/update the user
return await this.processUserInfo(userInfo, req.ip)
- } catch (error) {
- const errorStatus = error?.getStatus() || HttpStatus.UNAUTHORIZED
- this.logger.error(`${this.handleCallback.name} - OIDC callback error: ${error}`)
- throw new HttpException('OIDC authentication failed', errorStatus)
+ } catch (error: AuthorizationResponseError | HttpException | any) {
+ if (error instanceof AuthorizationResponseError) {
+ this.logger.error(`${this.handleCallback.name} - OIDC callback error: ${error.code} - ${error.error_description}`)
+ throw new HttpException(error.error_description, HttpStatus.BAD_REQUEST)
+ } else {
+ this.logger.error(`${this.handleCallback.name} - OIDC callback error: ${error}`)
+ throw new HttpException('OIDC authentication failed', error instanceof HttpException ? error.getStatus() : HttpStatus.INTERNAL_SERVER_ERROR)
+ }
+ } finally {
+ // Always clear temporary OIDC cookies (success or failure)
+ Object.values(OAuthCookie).forEach((value) => {
+ res.clearCookie(value, { path: '/' })
+ })
}
}
@@ -167,7 +175,7 @@ export class AuthProviderOIDC implements AuthProvider {
return null
}
- if (user.isGuest || user.isAdmin || scope || this.oidcConfig.enablePasswordAuth) {
+ if (user.isGuest || user.isAdmin || scope || this.oidcConfig.options.enablePasswordAuth) {
// Allow local password authentication for:
// - guest users
// - admin users (break-glass access)
@@ -201,16 +209,22 @@ export class AuthProviderOIDC implements AuthProvider {
const config: Configuration = await discovery(
issuerUrl,
this.oidcConfig.clientId,
- { client_secret: this.oidcConfig.clientSecret, response_types: ['code'] },
- this.getTokenAuthMethod(this.oidcConfig.clientAuthMethod, this.oidcConfig.clientSecret),
{
- execute: [allowInsecureRequests] // allow HTTP for development
+ client_secret: this.oidcConfig.clientSecret,
+ response_types: ['code'],
+ id_token_signed_response_alg: this.oidcConfig.security.tokenSigningAlg,
+ userinfo_signed_response_alg: this.oidcConfig.security.userInfoSigningAlg
+ },
+ this.getTokenAuthMethod(this.oidcConfig.security.tokenEndpointAuthMethod, this.oidcConfig.clientSecret),
+ {
+ execute: [allowInsecureRequests], // allow HTTP for development
+ timeout: 6000
}
)
this.logger.log(`${this.initializeOIDCClient.name} - OIDC client initialized successfully for issuer: ${this.oidcConfig.issuerUrl}`)
return config
} catch (error) {
- this.logger.error(`${this.initializeOIDCClient.name} - Failed to initialize OIDC client: ${error}`)
+ this.logger.error(`${this.initializeOIDCClient.name} - Failed to initialize OIDC client: ${error?.cause || error}`)
return null
}
}
@@ -242,7 +256,7 @@ export class AuthProviderOIDC implements AuthProvider {
// Check if user exists
let user: UserModel = await this.usersManager.findUser(email || login, false)
- if (!user && !this.oidcConfig.autoCreateUser) {
+ if (!user && !this.oidcConfig.options.autoCreateUser) {
throw new HttpException('User not found and autoCreateUser is disabled', HttpStatus.UNAUTHORIZED)
}
@@ -262,14 +276,14 @@ export class AuthProviderOIDC implements AuthProvider {
}
private checkAdminRole(userInfo: UserInfoResponse): boolean {
- if (!this.oidcConfig.adminRoleOrGroup) {
+ if (!this.oidcConfig.options.adminRoleOrGroup) {
return false
}
// Check claims
const claims = [...(Array.isArray(userInfo.groups) ? userInfo.groups : []), ...(Array.isArray(userInfo.roles) ? userInfo.roles : [])]
- return claims.includes(this.oidcConfig.adminRoleOrGroup)
+ return claims.includes(this.oidcConfig.options.adminRoleOrGroup)
}
private createIdentity(
@@ -301,7 +315,11 @@ export class AuthProviderOIDC implements AuthProvider {
private async updateOrCreateUser(identity: Omit<CreateUserDto, 'password'> & { password?: string }, user: UserModel | null): Promise<UserModel> {
if (user === null) {
// Create new user with a random password (required by the system but not used for OIDC login)
- const userWithPassword = { ...identity, password: generateShortUUID(24) } as CreateUserDto
+ const userWithPassword = {
+ ...identity,
+ password: generateShortUUID(24),
+ permissions: this.oidcConfig.options.autoCreatePermissions.join(',')
+ } as CreateUserDto
const createdUser = await this.adminUsersManager.createUserOrGuest(userWithPassword, identity.role)
const freshUser = await this.usersManager.fromUserId(createdUser.id)
if (!freshUser) {
@@ -322,7 +340,7 @@ export class AuthProviderOIDC implements AuthProvider {
if (Object.keys(identityHasChanged).length > 0) {
try {
if (identityHasChanged?.role != null) {
- if (user.role === USER_ROLE.ADMINISTRATOR && !this.oidcConfig.adminRoleOrGroup) {
+ if (user.role === USER_ROLE.ADMINISTRATOR && !this.oidcConfig.options.adminRoleOrGroup) {
// Prevent removing the admin role when adminGroup was removed or not defined
delete identityHasChanged.role
}
diff --git a/environment/environment.dist.yaml b/environment/environment.dist.yaml
index c7ed5e32..c489690a 100755
--- a/environment/environment.dist.yaml
+++ b/environment/environment.dist.yaml
@@ -141,52 +141,85 @@ auth:
# default: true
enablePasswordAuthFallback: true
oidc:
- # issuerUrl: The URL of the OIDC provider's discovery endpoint (e.g., https://accounts.google.com, https://login.microsoftonline.com/tenant-id/v2.0)
- # The server will automatically discover the authorization, token, userinfo, and logout endpoints
+ # issuerUrl: The URL of the OIDC provider's discovery endpoint
+ # Examples:
+ # - Keycloak: https://auth.example.com/realms/my-realm
+ # - Authentik: https://auth.example.com/application/o/my-app/
+ # - Google: https://accounts.google.com
+ # - Microsoft: https://login.microsoftonline.com/<tenant-id>/v2.0
+ # The server will automatically discover the authorization, token, and userinfo endpoints.
# required
issuerUrl:
# clientId: OAuth 2.0 Client ID obtained from your OIDC provider
# required
- clientId:
+ clientId: sync-in
# clientSecret: OAuth 2.0 Client Secret obtained from your OIDC provider
# required
- clientSecret:
- # OAuth 2.0 / OIDC client authentication method used at the token endpoint.
- # Possible values:
- # - client_secret_basic (DEFAULT): HTTP Basic auth using client_id and client_secret.
- # Recommended for backend (confidential) clients.
- # - client_secret_post: client_id and client_secret sent in the request body.
- # - none: no client authentication (public clients: mobile / SPA with PKCE).
- # default: `client_secret_basic`
- # optional
- clientAuthMethod: client_secret_basic
+ clientSecret: changeClientSecret
# redirectUri: The callback URL where users are redirected after authentication
# This URL must be registered in your OIDC provider's allowed redirect URIs
+ # Example (API callback): https://sync-in.domain.com/api/auth/oidc/callback
# required
- redirectUri: http://192.168.0.25:8080/api/auth/oidc/callback
- # scope: OAuth 2.0 scopes to request (space-separated string)
- # Common scopes: openid (required), email, profile, groups, roles
- # default: `openid email profile`
- scope: openid email profile
- # autoCreateUser: Automatically create a local user account on first successful OIDC login.
- # When disabled, only existing users are allowed to authenticate via OIDC.
- # default: true
- autoCreateUser: true
- # enablePasswordAuthentication: Enable local password-based authentication (login or email/password).
- # When enabled, users can sign in with their Sync-in password in addition to OIDC authentication.
- # Users must have signed in at least once and have a local password set.
- # default: true
- enablePasswordAuth: true
- # skipSubjectCheck: Disable verification that the `sub` claim returned by the UserInfo endpoint
- # matches the `sub` claim from the ID token.
- # Set to true only for non-compliant or legacy OIDC providers.
- # default: false
- skipSubjectCheck: false
- # adminRoleOrGroup: Name of the role or group that grants Sync-in administrator access
- # Users with this value will be granted administrator privileges
- # The value is matched against the `groups` or `roles` claims returned by the OIDC provider
- # optional
- adminRoleOrGroup:
+ redirectUri: https://sync-in.domain.com/api/auth/oidc/callback
+ options:
+ # autoCreateUser: Automatically create a local user account on first successful OIDC login.
+ # When enabled, the user `login` is derived from OIDC claims: preferred_username, then the email local-part, with `sub` as a last-resort fallback.
+ # When disabled, only existing users are allowed to authenticate via OIDC.
+ # default: true
+ autoCreateUser: true
+ # autoCreatePermissions: Permissions assigned to users automatically created via OIDC.
+ # Applied only when autoCreateUser is enabled and only applied at user creation time.
+ # This option has no effect on existing users.
+ # A complete list of permissions is available in the documentation: https://sync-in.com/docs/admin-guide/permissions
+ # e.g.: [personal_space, spaces_access] (array required)
+ # default: []
+ autoCreatePermissions: []
+ # autoRedirect: Automatically redirect users to the OIDC login flow.
+ # When enabled, the login page is skipped and users are sent directly to the OIDC provider.
+ # default: false
+ autoRedirect: false
+ # enablePasswordAuth: Enable local password-based authentication (login or email/password).
+ # When enabled, users can sign in with their Sync-in password in addition to OIDC authentication.
+ # Users must have signed in at least once and have a local password set.
+ # default: true
+ enablePasswordAuth: true
+ # adminRoleOrGroup: Name of the role or group that grants Sync-in administrator access
+ # Users with this value will be granted administrator privileges.
+ # The value is matched against `roles` or `groups` claims provided by the IdP.
+ # Note: depending on the provider (e.g., Keycloak), roles/groups may be exposed only in tokens
+ # and require proper IdP mappers to be included in the ID token or UserInfo response.
+ # optional
+ adminRoleOrGroup:
+ # buttonText: Label displayed on the OIDC login button.
+ # default: Continue with OpenID Connect
+ buttonText: Continue with OpenID Connect
+ security:
+ # scope: OAuth 2.0 scopes to request (space-separated string)
+ # Common scopes: openid (required), email, profile, groups, roles
+ # default: `openid email profile`
+ scope: openid email profile
+ # OAuth 2.0 / OIDC client authentication method used at the token endpoint.
+ # Possible values:
+ # - client_secret_basic (DEFAULT): HTTP Basic auth using client_id and client_secret.
+ # Recommended for backend (confidential) clients.
+ # - client_secret_post: client_id and client_secret sent in the request body.
+ # - none (or undefined): no client authentication (public clients: mobile / SPA with PKCE).
+ # default: `client_secret_basic`
+ tokenEndpointAuthMethod: client_secret_basic
+ # tokenSigningAlg: Algorithm used to verify the signature of ID tokens (JWT) returned by the OpenID Connect provider.
+ # Common values: RS256, RS384, RS512, ES256, ES384, ES512
+ # default: `RS256`
+ tokenSigningAlg: RS256
+ # userInfoSigningAlg: Algorithm used to request a signed UserInfo response from the OpenID Connect provider.
+ # When not set, the UserInfo endpoint returns a standard JSON response (not signed). This is the most common and recommended configuration.
+ # Common values: (empty), RS256, RS384, RS512, ES256, ES384, ES512
+ # default: empty
+ userInfoSigningAlg:
+ # skipSubjectCheck: Disable verification that the `sub` claim returned by the UserInfo endpoint
+ # matches the `sub` claim from the ID token.
+ # Set to true only for non-compliant or legacy OIDC providers.
+ # default: false
+ skipSubjectCheck: false
applications:
files:
# required
diff --git a/frontend/src/app/auth/auth-resolvers.ts b/frontend/src/app/auth/auth-resolvers.ts
new file mode 100644
index 00000000..976d39ca
--- /dev/null
+++ b/frontend/src/app/auth/auth-resolvers.ts
@@ -0,0 +1,14 @@
+/*
+ * Copyright (C) 2012-2026 Johan Legrand <[email protected]>
+ * This file is part of Sync-in | The open source file sync and share solution
+ * See the LICENSE file for licensing details
+ */
+
+import { inject } from '@angular/core'
+import { ResolveFn } from '@angular/router'
+import type { AuthOIDCSettings } from '@sync-in-server/backend/src/authentication/providers/oidc/auth-oidc.interfaces'
+import { AuthService } from './auth.service'
+
+export const authResolver: ResolveFn<AuthOIDCSettings | false> = () => {
+ return inject(AuthService).getAuthSettings()
+}
diff --git a/frontend/src/app/auth/auth.component.html b/frontend/src/app/auth/auth.component.html
index 05210d69..eb29ec35 100644
--- a/frontend/src/app/auth/auth.component.html
+++ b/frontend/src/app/auth/auth.component.html
@@ -56,24 +56,38 @@
</div>
</form>
} @else {
- <form (ngSubmit)="onSubmit()" [formGroup]="loginForm">
- <p class="fs-sm mb-3 {{hasError ? 'text-danger' : 'text-white-50'}}" l10nTranslate>{{ hasError || 'Sign-in to your account' }}</p>
- <div class="input-group my-2">
+ @if (!oidcSettings || oidcSettings.enablePasswordAuth) {
+ <form (ngSubmit)="onSubmit()" [formGroup]="loginForm">
+ <p class="fs-sm mb-3 {{hasError ? 'text-danger' : 'text-white-50'}}" l10nTranslate>{{ hasError || 'Sign-in to your account' }}</p>
+ <div class="input-group my-2">
<span class="input-group-text">
<fa-icon [icon]="icons.faUserAlt"></fa-icon>
</span>
- <input appAutofocus class="form-control" formControlName="username" [placeholder]="'Login or Email' | translate:locale.language" type="text" />
- </div>
- <div class="input-group mb-4">
+ <input appAutofocus class="form-control" formControlName="username" [placeholder]="'Login or Email' | translate:locale.language" type="text" />
+ </div>
+ <div class="input-group mb-3">
<span class="input-group-text">
<fa-icon [icon]="icons.faLock"></fa-icon>
</span>
- <input class="form-control" formControlName="password" [placeholder]="'Password' | translate:locale.language" type="password" />
- </div>
- <div class="d-flex">
- <button type="submit" [disabled]="loginForm.invalid || submitted" class="btn btn-primary px-4 w-100" l10nTranslate>Sign in</button>
+ <input class="form-control" formControlName="password" [placeholder]="'Password' | translate:locale.language" type="password" />
+ </div>
+ <div class="d-flex">
+ <button type="submit" [disabled]="loginForm.invalid || submitted" class="btn btn-primary px-4 w-100" l10nTranslate>Sign in</button>
+ </div>
+ </form>
+ }
+ @if (oidcSettings) {
+ <div class="d-flex flex-column">
+ <div class="d-flex mt-3">
+ <button
+ type="button"
+ class="btn btn-primary px-4 w-100"
+ (click)="loginWithOIDC()">
+ <span l10nTranslate>{{ oidcSettings.buttonText }}</span>
+ </button>
+ </div>
</div>
- </form>
+ }
}
</div>
</div>
diff --git a/frontend/src/app/auth/auth.component.ts b/frontend/src/app/auth/auth.component.ts
index 6ce5276c..0ee6f086 100644
--- a/frontend/src/app/auth/auth.component.ts
+++ b/frontend/src/app/auth/auth.component.ts
@@ -6,11 +6,12 @@
import { Component, inject } from '@angular/core'
import { FormGroup, ReactiveFormsModule, UntypedFormBuilder, Validators } from '@angular/forms'
-import { Router } from '@angular/router'
+import { ActivatedRoute, Router } from '@angular/router'
import { FaIconComponent } from '@fortawesome/angular-fontawesome'
import { faKey, faLock, faQrcode, faUserAlt } from '@fortawesome/free-solid-svg-icons'
import { USER_PASSWORD_MIN_LENGTH } from '@sync-in-server/backend/src/applications/users/constants/user'
import { TWO_FA_CODE_LENGTH } from '@sync-in-server/backend/src/authentication/constants/auth'
+import type { AuthOIDCSettings } from '@sync-in-server/backend/src/authentication/providers/oidc/auth-oidc.interfaces'
import type { TwoFaResponseDto, TwoFaVerifyDto } from '@sync-in-server/backend/src/authentication/providers/two-fa/auth-two-fa.dtos'
import { L10N_LOCALE, L10nLocale, L10nTranslateDirective, L10nTranslatePipe } from 'angular-l10n'
import { finalize } from 'rxjs/operators'
@@ -32,6 +33,10 @@ export class AuthComponent {
protected hasError: any = null
protected submitted = false
protected twoFaVerify = false
+ private route = inject(ActivatedRoute)
+ protected oidcSettings: AuthOIDCSettings | false = this.route.snapshot.data['authSettings']
+ private readonly router = inject(Router)
+ private readonly auth = inject(AuthService)
private readonly fb = inject(UntypedFormBuilder)
protected loginForm: FormGroup = this.fb.group({
username: this.fb.control('', [Validators.required]),
@@ -42,8 +47,12 @@ export class AuthComponent {
recoveryCode: this.fb.control('', [Validators.required, Validators.minLength(USER_PASSWORD_MIN_LENGTH)]),
isRecoveryCode: this.fb.control(false)
})
- private readonly router = inject(Router)
- private readonly auth = inject(AuthService)
+
+ constructor() {
+ if (this.oidcSettings && this.oidcSettings.autoRedirect) {
+ this.loginWithOIDC()
+ }
+ }
onSubmit() {
this.submitted = true
@@ -107,4 +116,10 @@ export class AuthComponent {
}
this.loginForm.patchValue({ password: '' })
}
+
+ loginWithOIDC() {
+ if (this.oidcSettings) {
+ window.location.href = this.oidcSettings.loginUrl
+ }
+ }
}
diff --git a/frontend/src/app/auth/auth.routes.ts b/frontend/src/app/auth/auth.routes.ts
index 4ceb85f3..c8fe8c8f 100644
--- a/frontend/src/app/auth/auth.routes.ts
+++ b/frontend/src/app/auth/auth.routes.ts
@@ -5,6 +5,7 @@
*/
import { Routes } from '@angular/router'
+import { authResolver } from './auth-resolvers'
import { AuthComponent } from './auth.component'
import { AUTH_PATHS } from './auth.constants'
import { noAuthGuard } from './auth.guards'
@@ -13,6 +14,7 @@ export const authRoutes: Routes = [
{
path: AUTH_PATHS.BASE,
canActivate: [noAuthGuard],
+ resolve: { authSettings: authResolver },
children: [{ path: AUTH_PATHS.LOGIN, component: AuthComponent }]
}
]
diff --git a/frontend/src/app/auth/auth.service.ts b/frontend/src/app/auth/auth.service.ts
index 5c70a8d0..b14ff042 100644
--- a/frontend/src/app/auth/auth.service.ts
+++ b/frontend/src/app/auth/auth.service.ts
@@ -17,10 +17,12 @@ import {
API_AUTH_LOGIN,
API_AUTH_LOGOUT,
API_AUTH_REFRESH,
+ API_AUTH_SETTINGS,
API_TWO_FA_LOGIN_VERIFY
} from '@sync-in-server/backend/src/authentication/constants/routes'
import type { LoginResponseDto } from '@sync-in-server/backend/src/authentication/dto/login-response.dto'
import type { TokenResponseDto } from '@sync-in-server/backend/src/authentication/dto/token-response.dto'
+import type { AuthOIDCSettings } from '@sync-in-server/backend/src/authentication/providers/oidc/auth-oidc.interfaces'
import type { TwoFaResponseDto, TwoFaVerifyDto } from '@sync-in-server/backend/src/authentication/providers/two-fa/auth-two-fa.dtos'
import { currentTimeStamp } from '@sync-in-server/backend/src/common/shared'
import { catchError, finalize, map, Observable, of, throwError } from 'rxjs'
@@ -40,6 +42,7 @@ import type { AuthOIDCQueryParams } from './auth.interface'
})
export class AuthService {
public returnUrl: string
+ private authSettings: AuthOIDCSettings | false = null
private readonly http = inject(HttpClient)
private readonly router = inject(Router)
private readonly store = inject(StoreService)
@@ -241,6 +244,22 @@ export class AuthService {
}
}
+ getAuthSettings(): Observable<AuthOIDCSettings | false> {
+ // If OIDC authentication is not enabled, the route should return a 404.
+ if (this.authSettings !== null) return of(this.authSettings)
+ return this.http.get<AuthOIDCSettings>(API_AUTH_SETTINGS).pipe(
+ map((r): AuthOIDCSettings => {
+ this.authSettings = r
+ return r
+ }),
+ catchError((e: HttpErrorResponse) => {
+ console.error(e)
+ this.authSettings = false
+ return of(false as const)
+ })
+ )
+ }
+
private refreshTokenHasExpired(): boolean {
return this.refreshExpiration === 0 || currentTimeStamp() >= this.refreshExpiration
}
diff --git a/frontend/src/i18n/de.json b/frontend/src/i18n/de.json
index 5afca308..e127a441 100644
--- a/frontend/src/i18n/de.json
+++ b/frontend/src/i18n/de.json
@@ -634,5 +634,6 @@
"Preferences": "Einstellungen",
"of": "von",
"Sidebar auto-hide enabled": "Automatisches Ausblenden der Seitenleiste aktiviert",
- "Sidebar pinned": "Seitenleiste angeheftet"
+ "Sidebar pinned": "Seitenleiste angeheftet",
+ "Continue with OpenID Connect": "Mit OpenID Connect fortfahren"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/es.json b/frontend/src/i18n/es.json
index b166f749..70f62076 100644
--- a/frontend/src/i18n/es.json
+++ b/frontend/src/i18n/es.json
@@ -634,5 +634,6 @@
"Preferences": "Preferencias",
"of": "de",
"Sidebar auto-hide enabled": "Ocultación automática de la barra lateral activada",
- "Sidebar pinned": "Barra lateral fijada"
+ "Sidebar pinned": "Barra lateral fijada",
+ "Continue with OpenID Connect": "Continuar con OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/fr.json b/frontend/src/i18n/fr.json
index 6501ecdc..3b218144 100644
--- a/frontend/src/i18n/fr.json
+++ b/frontend/src/i18n/fr.json
@@ -634,5 +634,6 @@
"Preferences": "Préférences",
"of": "de",
"Sidebar auto-hide enabled": "Masquage automatique de la barre latérale activé",
- "Sidebar pinned": "Barre latérale épinglée"
+ "Sidebar pinned": "Barre latérale épinglée",
+ "Continue with OpenID Connect": "Continuer avec OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/hi.json b/frontend/src/i18n/hi.json
index 485c5fc1..0bb17385 100644
--- a/frontend/src/i18n/hi.json
+++ b/frontend/src/i18n/hi.json
@@ -634,5 +634,6 @@
"Preferences": "वरीयताएँ",
"of": "का",
"Sidebar auto-hide enabled": "साइडबार स्वतः छिपाना सक्षम",
- "Sidebar pinned": "साइडबार पिन किया गया"
+ "Sidebar pinned": "साइडबार पिन किया गया",
+ "Continue with OpenID Connect": "OpenID Connect के साथ जारी रखें"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/it.json b/frontend/src/i18n/it.json
index 96e6da10..e156b2d1 100644
--- a/frontend/src/i18n/it.json
+++ b/frontend/src/i18n/it.json
@@ -634,5 +634,6 @@
"Preferences": "Preferenze",
"of": "di",
"Sidebar auto-hide enabled": "Nascondimento automatico della barra laterale attivato",
- "Sidebar pinned": "Barra laterale bloccata"
+ "Sidebar pinned": "Barra laterale bloccata",
+ "Continue with OpenID Connect": "Continua con OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ja.json b/frontend/src/i18n/ja.json
index 9a2afa37..d500390b 100644
--- a/frontend/src/i18n/ja.json
+++ b/frontend/src/i18n/ja.json
@@ -634,5 +634,6 @@
"Preferences": "環境設定",
"of": "の",
"Sidebar auto-hide enabled": "サイドバー自動非表示が有効",
- "Sidebar pinned": "サイドバー固定"
+ "Sidebar pinned": "サイドバー固定",
+ "Continue with OpenID Connect": "OpenID Connectで続行"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ko.json b/frontend/src/i18n/ko.json
index a06bc0ee..da729159 100644
--- a/frontend/src/i18n/ko.json
+++ b/frontend/src/i18n/ko.json
@@ -634,5 +634,6 @@
"Preferences": "환경 설정",
"of": "의",
"Sidebar auto-hide enabled": "사이드바 자동 숨김 활성화",
- "Sidebar pinned": "사이드바 고정됨"
+ "Sidebar pinned": "사이드바 고정됨",
+ "Continue with OpenID Connect": "OpenID Connect로 계속하기"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/pl.json b/frontend/src/i18n/pl.json
index 8e15517c..f1fbf370 100644
--- a/frontend/src/i18n/pl.json
+++ b/frontend/src/i18n/pl.json
@@ -634,5 +634,6 @@
"Preferences": "Preferencje",
"of": "z",
"Sidebar auto-hide enabled": "Włączono automatyczne ukrywanie panelu bocznego",
- "Sidebar pinned": "Panel boczny przypięty"
+ "Sidebar pinned": "Panel boczny przypięty",
+ "Continue with OpenID Connect": "Kontynuuj z OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/pt-BR.json b/frontend/src/i18n/pt-BR.json
index 5ee275ad..96312b97 100644
--- a/frontend/src/i18n/pt-BR.json
+++ b/frontend/src/i18n/pt-BR.json
@@ -634,5 +634,6 @@
"Preferences": "Preferências",
"of": "de",
"Sidebar auto-hide enabled": "Ocultação automática da barra lateral ativada",
- "Sidebar pinned": "Barra lateral fixada"
+ "Sidebar pinned": "Barra lateral fixada",
+ "Continue with OpenID Connect": "Continuar com OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/pt.json b/frontend/src/i18n/pt.json
index 965f2caf..ca39a2aa 100644
--- a/frontend/src/i18n/pt.json
+++ b/frontend/src/i18n/pt.json
@@ -634,5 +634,6 @@
"Preferences": "Preferências",
"of": "de",
"Sidebar auto-hide enabled": "Ocultação automática da barra lateral ativada",
- "Sidebar pinned": "Barra lateral fixa"
+ "Sidebar pinned": "Barra lateral fixa",
+ "Continue with OpenID Connect": "Continuar com OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/ru.json b/frontend/src/i18n/ru.json
index 296f467d..46e8d34a 100644
--- a/frontend/src/i18n/ru.json
+++ b/frontend/src/i18n/ru.json
@@ -634,5 +634,6 @@
"Preferences": "Настройки",
"of": "из",
"Sidebar auto-hide enabled": "Автоскрытие боковой панели включено",
- "Sidebar pinned": "Боковая панель закреплена"
+ "Sidebar pinned": "Боковая панель закреплена",
+ "Continue with OpenID Connect": "Продолжить с OpenID Connect"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/tr.json b/frontend/src/i18n/tr.json
index c607f2e3..2561044f 100644
--- a/frontend/src/i18n/tr.json
+++ b/frontend/src/i18n/tr.json
@@ -634,5 +634,6 @@
"Preferences": "Tercihler",
"of": "/",
"Sidebar auto-hide enabled": "Kenar çubuğu otomatik gizleme etkin",
- "Sidebar pinned": "Kenar çubuğu sabitlendi"
+ "Sidebar pinned": "Kenar çubuğu sabitlendi",
+ "Continue with OpenID Connect": "OpenID Connect ile devam et"
}
\ No newline at end of file
diff --git a/frontend/src/i18n/zh.json b/frontend/src/i18n/zh.json
index 250a42bb..edcc19c8 100644
--- a/frontend/src/i18n/zh.json
+++ b/frontend/src/i18n/zh.json
@@ -634,5 +634,6 @@
"Preferences": "偏好设置",
"of": "的",
"Sidebar auto-hide enabled": "侧边栏自动隐藏已启用",
- "Sidebar pinned": "侧边栏已固定"
+ "Sidebar pinned": "侧边栏已固定",
+ "Continue with OpenID Connect": "使用 OpenID Connect 继续"
}
\ No newline at end of file
diff --git a/frontend/src/styles/components/_app.scss b/frontend/src/styles/components/_app.scss
index ce308618..716cd08d 100755
--- a/frontend/src/styles/components/_app.scss
+++ b/frontend/src/styles/components/_app.scss
@@ -18,15 +18,14 @@
background: rgba(0, 0, 0, 0.5);
padding: 2rem 5rem 2rem 5rem;
border-radius: 8px;
- min-height: 295px;
- min-width: 420px;
+ min-width: 400px;
.content {
display: flex;
flex-direction: column;
.header {
- margin-bottom: 1rem;
+ margin-bottom: .6rem;
}
.body {
diff --git a/package-lock.json b/package-lock.json
index dd25f56b..395b5357 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -82,6 +82,7 @@
"mysql2": "^3.11.4",
"nestjs-pino": "^4.3.0",
"nodemailer": "^7.0.0",
+ "openid-client": "^6.8.1",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
@@ -7422,16 +7423,235 @@
"win32"
]
},
- "node_modules/@napi-rs/canvas": {
- "name": "noop3",
- "version": "1000.0.0",
- "resolved": "https://registry.npmjs.org/noop3/-/noop3-1000.0.0.tgz",
- "integrity": "sha512-OkcS5jjmDBhdLt5rwoHtItQfUHP3+NpWA9voB0SHth+KLIoupZEe+3D76bNvS37qG8vg2FFSqQ61blrEtZj1Yw==",
+ "node_modules/@napi-rs/canvas-android-arm64": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-android-arm64/-/canvas-android-arm64-0.1.88.tgz",
+ "integrity": "sha512-KEaClPnZuVxJ8smUWjV1wWFkByBO/D+vy4lN+Dm5DFH514oqwukxKGeck9xcKJhaWJGjfruGmYGiwRe//+/zQQ==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
"license": "MIT",
"optional": true,
- "peer": true,
+ "os": [
+ "android"
+ ],
"engines": {
- "node": ">=6"
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-darwin-arm64": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-arm64/-/canvas-darwin-arm64-0.1.88.tgz",
+ "integrity": "sha512-Xgywz0dDxOKSgx3eZnK85WgGMmGrQEW7ZLA/E7raZdlEE+xXCozobgqz2ZvYigpB6DJFYkqnwHjqCOTSDGlFdg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-darwin-x64": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-darwin-x64/-/canvas-darwin-x64-0.1.88.tgz",
+ "integrity": "sha512-Yz4wSCIQOUgNucgk+8NFtQxQxZV5NO8VKRl9ePKE6XoNyNVC8JDqtvhh3b3TPqKK8W5p2EQpAr1rjjm0mfBxdg==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "darwin"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm-gnueabihf": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm-gnueabihf/-/canvas-linux-arm-gnueabihf-0.1.88.tgz",
+ "integrity": "sha512-9gQM2SlTo76hYhxHi2XxWTAqpTOb+JtxMPEIr+H5nAhHhyEtNmTSDRtz93SP7mGd2G3Ojf2oF5tP9OdgtgXyKg==",
+ "cpu": [
+ "arm"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm64-gnu": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-gnu/-/canvas-linux-arm64-gnu-0.1.88.tgz",
+ "integrity": "sha512-7qgaOBMXuVRk9Fzztzr3BchQKXDxGbY+nwsovD3I/Sx81e+sX0ReEDYHTItNb0Je4NHbAl7D0MKyd4SvUc04sg==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-arm64-musl": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-arm64-musl/-/canvas-linux-arm64-musl-0.1.88.tgz",
+ "integrity": "sha512-kYyNrUsHLkoGHBc77u4Unh067GrfiCUMbGHC2+OTxbeWfZkPt2o32UOQkhnSswKd9Fko/wSqqGkY956bIUzruA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-riscv64-gnu": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-riscv64-gnu/-/canvas-linux-riscv64-gnu-0.1.88.tgz",
+ "integrity": "sha512-HVuH7QgzB0yavYdNZDRyAsn/ejoXB0hn8twwFnOqUbCCdkV+REna7RXjSR7+PdfW0qMQ2YYWsLvVBT5iL/mGpw==",
+ "cpu": [
+ "riscv64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-x64-gnu": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-gnu/-/canvas-linux-x64-gnu-0.1.88.tgz",
+ "integrity": "sha512-hvcvKIcPEQrvvJtJnwD35B3qk6umFJ8dFIr8bSymfrSMem0EQsfn1ztys8ETIFndTwdNWJKWluvxztA41ivsEw==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-linux-x64-musl": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-linux-x64-musl/-/canvas-linux-x64-musl-0.1.88.tgz",
+ "integrity": "sha512-eSMpGYY2xnZSQ6UxYJ6plDboxq4KeJ4zT5HaVkUnbObNN6DlbJe0Mclh3wifAmquXfrlgTZt6zhHsUgz++AK6g==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "linux"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-win32-arm64-msvc": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-arm64-msvc/-/canvas-win32-arm64-msvc-0.1.88.tgz",
+ "integrity": "sha512-qcIFfEgHrchyYqRrxsCeTQgpJZ/GqHiqPcU/Fvw/ARVlQeDX1VyFH+X+0gCR2tca6UJrq96vnW+5o7buCq+erA==",
+ "cpu": [
+ "arm64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
+ }
+ },
+ "node_modules/@napi-rs/canvas-win32-x64-msvc": {
+ "version": "0.1.88",
+ "resolved": "https://registry.npmjs.org/@napi-rs/canvas-win32-x64-msvc/-/canvas-win32-x64-msvc-0.1.88.tgz",
+ "integrity": "sha512-ROVqbfS4QyZxYkqmaIBBpbz/BQvAR+05FXM5PAtTYVc0uyY8Y4BHJSMdGAaMf6TdIVRsQsiq+FG/dH9XhvWCFQ==",
+ "cpu": [
+ "x64"
+ ],
+ "dev": true,
+ "license": "MIT",
+ "optional": true,
+ "os": [
+ "win32"
+ ],
+ "engines": {
+ "node": ">= 10"
+ },
+ "funding": {
+ "type": "github",
+ "url": "https://github.com/sponsors/Brooooooklyn"
}
},
"node_modules/@napi-rs/nice": {
@@ -21041,7 +21261,6 @@
"version": "6.1.3",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.1.3.tgz",
"integrity": "sha512-0TpaTfihd4QMNwrz/ob2Bp7X04yuxJkjRGi4aKmOqwhov54i6u79oCv7T+C7lo70MKH6BesI3vscD1yb/yzKXQ==",
- "dev": true,
"license": "MIT",
"funding": {
"url": "https://github.com/sponsors/panva"
@@ -23586,6 +23805,15 @@
"url": "https://github.com/fb55/nth-check?sponsor=1"
}
},
+ "node_modules/oauth4webapi": {
+ "version": "3.8.3",
+ "resolved": "https://registry.npmjs.org/oauth4webapi/-/oauth4webapi-3.8.3.tgz",
+ "integrity": "sha512-pQ5BsX3QRTgnt5HxgHwgunIRaDXBdkT23tf8dfzmtTIL2LTpdmxgbpbBm0VgFWAIDlezQvQCTgnVIUmHupXHxw==",
+ "license": "MIT",
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
+ }
+ },
"node_modules/object-assign": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",
@@ -23664,6 +23892,19 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/openid-client": {
+ "version": "6.8.1",
+ "resolved": "https://registry.npmjs.org/openid-client/-/openid-client-6.8.1.tgz",
+ "integrity": "sha512-VoYT6enBo6Vj2j3Q5Ec0AezS+9YGzQo1f5Xc42lreMGlfP4ljiXPKVDvCADh+XHCV/bqPu/wWSiCVXbJKvrODw==",
+ "license": "MIT",
+ "dependencies": {
+ "jose": "^6.1.0",
+ "oauth4webapi": "^3.8.2"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/panva"
+ }
+ },
"node_modules/opentype.js": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/opentype.js/-/opentype.js-0.11.0.tgz",