server
Enumerations
- AuthPluginOverride
- AzpOptions
- BaseClusterEvents
- ClientSearch
- ClusterJobEvents
- RoleConfigurationStyle
- RoleLocations
- StateOptions
- SupportedServers
- VerifiableJwtTokenTypes
Classes
- AbstractAuthPlugin
- AbstractClusterProvider
- AbstractKeyProvider
- AuthPluginManager
- ClusterJob
- ClusterKeyProvider
- ExpressAdapter
- FastifyAdapter
- TokenCache
- UserInfoCache
- WaitTimeoutError
Interfaces
- CancelPendingJwksUpdateMsg
- ClusterConfig
- ConnectorRequest
- ConnectorResponse
- CookieParams
- KeycloakConnectorConfigBase
- KeycloakConnectorInternalConfiguration
- LockOptions
- NewJwksAvailableMsg
- PendingJwksUpdateMsg
- RequestActiveKey
- RequestUpdateSystemJwksMsg
- ServerActiveKey
- UserData
- UserDataResponse
Type Aliases
AuthPluginInternalConfig
Ƭ AuthPluginInternalConfig: Object
Type declaration
Name | Type |
---|---|
name | string |
override? | AuthPluginOverride |
Defined in
packages/backend/server/src/auth-plugins/abstract-auth-plugin.ts:5
AuthPluginOnRegisterConfig
Ƭ AuthPluginOnRegisterConfig: Object
Type declaration
Name | Type |
---|---|
keycloakConfig | KeycloakConnectorConfigBase |
logger? | Logger |
Defined in
packages/backend/server/src/auth-plugins/abstract-auth-plugin.ts:10
ClientRole
Ƭ ClientRole<Clients
, Roles
>: { [client in Clients]: RoleRules<Roles> }
Type parameters
Name | Type |
---|---|
Clients | extends KeycloakClient = KeycloakClient |
Roles | extends KeycloakRole = KeycloakRole |
Defined in
packages/backend/server/src/types.ts:246
ClusterConnectorKeys
Ƭ ClusterConnectorKeys: Object
Type declaration
Name | Type |
---|---|
connectorKeys | ConnectorKeys |
currentStart? | number |
prevConnectorKeys? | ConnectorKeys |
prevExpire? | number |
Defined in
packages/backend/server/src/crypto/cluster-key-provider.ts:23
ClusterJobConfig
Ƭ ClusterJobConfig: Object
Type declaration
Name | Type |
---|---|
clusterProvider | AbstractClusterProvider |
jobName? | string |
requestTimestamp | number |
targetChannel | string |
Defined in
packages/backend/server/src/cluster/cluster-job.ts:3
ClusterJobMessage
Ƭ ClusterJobMessage: Object
Type declaration
Name | Type |
---|---|
duration | number |
event | string |
jobName? | string |
processId? | string |
remarks? | string |
timestamp | number |
Defined in
packages/backend/server/src/cluster/cluster-job.ts:17
ClusterKeyProviderMsgs
Ƭ ClusterKeyProviderMsgs: PendingJwksUpdateMsg
| CancelPendingJwksUpdateMsg
| NewJwksAvailableMsg
| RequestUpdateSystemJwksMsg
| RequestActiveKey
Defined in
packages/backend/server/src/crypto/cluster-key-provider-message-types.ts:37
ClusterMessage
Ƭ ClusterMessage: unknown
Defined in
packages/backend/server/src/cluster/abstract-cluster-provider.ts:21
CombinedRoleRules
Ƭ CombinedRoleRules<Roles
, Clients
>: RoleRules
<Roles
> | ClientRole
<Clients
, Roles
> | RoleLocation
<Roles
>
Type parameters
Name | Type |
---|---|
Roles | extends KeycloakRole = KeycloakRole |
Clients | extends KeycloakClient = KeycloakClient |
Defined in
packages/backend/server/src/types.ts:261
ConnectorKeys
Ƭ ConnectorKeys: Object
Type declaration
Name | Type |
---|---|
kid | string |
privateJwk | JWK |
publicJwk | JWK |
Defined in
packages/backend/server/src/types.ts:32
CookieOptionsBase
Ƭ CookieOptionsBase<Server
>: Server
extends fastify
? CookieSerializeOptions
: CookieOptions
Type parameters
Name | Type |
---|---|
Server | extends SupportedServers |
Defined in
packages/backend/server/src/types.ts:203
DecorateResponse
Ƭ DecorateResponse: (input
: { connectorRequest
: ConnectorRequest
; logger
: Logger
| undefined
; userData
: UserData
}) => Promise
<Record
<string
, unknown
>>
Type declaration
▸ (input
): Promise
<Record
<string
, unknown
>>
Parameters
Name | Type |
---|---|
input | Object |
input.connectorRequest | ConnectorRequest |
input.logger | Logger | undefined |
input.userData | UserData |
Returns
Promise
<Record
<string
, unknown
>>
Defined in
packages/backend/server/src/auth-plugins/abstract-auth-plugin.ts:15
DecorateUserStatus
Ƭ DecorateUserStatus<UserStatus
>: (connectorRequest
: ConnectorRequest
, logger
: Logger
| undefined
) => Promise
<Record
<string
, UserStatus
>>
Type parameters
Name | Type |
---|---|
UserStatus | Record <string , any > |
Type declaration
▸ (connectorRequest
, logger
): Promise
<Record
<string
, UserStatus
>>
Parameters
Name | Type |
---|---|
connectorRequest | ConnectorRequest |
logger | Logger | undefined |
Returns
Promise
<Record
<string
, UserStatus
>>
Defined in
packages/backend/server/src/auth-plugins/abstract-auth-plugin.ts:16
HTTPMethod
Ƭ HTTPMethod: "GET"
| "POST"
| "PUT"
| "PATCH"
| "DELETE"
| "OPTIONS"
| "HEAD"
Defined in
packages/backend/server/src/types.ts:17
IsUserAuthorized
Ƭ IsUserAuthorized: (connectorRequest
: ConnectorRequest
, userData
: UserData
, logger?
: Logger
) => Promise
<boolean
>
Type declaration
▸ (connectorRequest
, userData
, logger?
): Promise
<boolean
>
Parameters
Name | Type |
---|---|
connectorRequest | ConnectorRequest |
userData | UserData |
logger? | Logger |
Returns
Promise
<boolean
>
Defined in
packages/backend/server/src/auth-plugins/abstract-auth-plugin.ts:17
KcAccessJWT
Ƭ KcAccessJWT: OidcIdToken
& OidcStandardClaims
& KcAccessClaims
Defined in
packages/backend/server/src/types.ts:271
KeyProvider
Ƭ KeyProvider: (keyProviderConfig
: KeyProviderConfig
) => Promise
<AbstractKeyProvider
>
Type declaration
▸ (keyProviderConfig
): Promise
<AbstractKeyProvider
>
Parameters
Name | Type |
---|---|
keyProviderConfig | KeyProviderConfig |
Returns
Promise
<AbstractKeyProvider
>
Defined in
packages/backend/server/src/types.ts:145
KeyProviderConfig
Ƭ KeyProviderConfig: Object
Type declaration
Name | Type |
---|---|
clusterProvider? | AbstractClusterProvider |
pinoLogger? | Logger |
Defined in
packages/backend/server/src/crypto/abstract-key-provider.ts:12
KeycloakClient
Ƭ KeycloakClient: string
Dev note - Unable to limit the number of properties declared when using a dynamic key in typescript Even though typescript may not throw errors, the runtime script still may.
Defined in
packages/backend/server/src/types.ts:230
KeycloakConnectorConfigCustom
Ƭ KeycloakConnectorConfigCustom: Omit
<Partial
<KeycloakConnectorConfigBase
>, "oidcClientMetadata"
> & Pick
<KeycloakConnectorConfigBase
, "authServerUrl"
| "realm"
| "serverOrigin"
> & { oidcClientMetadata?
: Partial
<ClientMetadata
> }
Defined in
packages/backend/server/src/types.ts:40
KeycloakConnectorExposedProperties
Ƭ KeycloakConnectorExposedProperties: ReturnType
<KeycloakConnector
<any
>["getExposed"
]>
Defined in
packages/backend/server/src/types.ts:38
KeycloakRole
Ƭ KeycloakRole: string
Defined in
packages/backend/server/src/types.ts:231
KeycloakRouteConfig
Ƭ KeycloakRouteConfig<Roles
>: RouteConfigRoles
<Roles
> & RouteConfigBase
Type parameters
Name | Type |
---|---|
Roles | extends KeycloakRole = KeycloakRole |
Defined in
packages/backend/server/src/types.ts:211
KeycloakRouteConfigFastify
Ƭ KeycloakRouteConfigFastify: KeycloakRouteConfig
& { bypassAllChecks?
: boolean
}
Defined in
packages/backend/server/src/adapter/fastify-types.ts:31
KeycloakRouteConfigOrRoles
Ƭ KeycloakRouteConfigOrRoles: KeycloakRouteConfig
| RoleRules
| undefined
| false
Defined in
packages/backend/server/src/types.ts:210
Listener
Ƭ Listener<R
, A
>: (...args
: A
) => R
Type parameters
Name | Type |
---|---|
R | void |
A | extends any [] | [] = any [] |
Type declaration
▸ (...args
): R
Parameters
Name | Type |
---|---|
...args | A |
Returns
R
Defined in
packages/backend/server/src/types.ts:147
PluginDecorators
Ƭ PluginDecorators: Record
<string
, unknown
>
Defined in
packages/backend/server/src/types.ts:156
RefreshTokenSet
Ƭ RefreshTokenSet: TokenSetParameters
& Required
<Pick
<TokenSetParameters
, "access_token"
| "refresh_token"
>> & { accessToken
: KcAccessJWT
}
Defined in
packages/backend/server/src/types.ts:273
RefreshTokenSetResult
Ƭ RefreshTokenSetResult: Object
Type declaration
Name | Type |
---|---|
refreshTokenSet | RefreshTokenSet |
shouldUpdateCookies | boolean |
Defined in
packages/backend/server/src/types.ts:277
ReqCookies
Ƭ ReqCookies: Object
Index signature
▪ [cookieName: string
]: string
| undefined
Defined in
packages/backend/server/src/types.ts:154
RequiredRoles
Ƭ RequiredRoles<Roles
, Clients
>: CombinedRoleRules
<Roles
, Clients
> | CombinedRoleRules
<Roles
, Clients
>[]
Type parameters
Name | Type |
---|---|
Roles | extends KeycloakRole = KeycloakRole |
Clients | extends KeycloakClient = KeycloakClient |
Defined in
packages/backend/server/src/types.ts:266
RoleLocation
Ƭ RoleLocation<Roles
, Clients
>: Object
Type parameters
Name | Type |
---|---|
Roles | extends KeycloakRole = KeycloakRole |
Clients | extends KeycloakClient = KeycloakClient |
Type declaration
Name | Type |
---|---|
REALM_ACCESS? | RoleRules <Roles > |
RESOURCE_ACCESS? | ClientRole <Clients , Roles > |
Defined in
packages/backend/server/src/types.ts:253
RoleRules
Ƭ RoleRules<Roles
>: RoleRule
<Roles
>[]
Type parameters
Name | Type |
---|---|
Roles | extends KeycloakRole = KeycloakRole |
Defined in
packages/backend/server/src/types.ts:242
SubscriberListener
Ƭ SubscriberListener: Listener
<Promise
<void
> | void
, [ClusterMessage
, SenderId
]>
Defined in
packages/backend/server/src/cluster/abstract-cluster-provider.ts:35
TokenCacheConfig
Ƭ TokenCacheConfig: CacheAdapterConfig
& { oidcClient
: BaseClient
}
Defined in
packages/backend/server/src/cache-adapters/token-cache.ts:10
TokenCacheProvider
Ƭ TokenCacheProvider: (...args
: ConstructorParameters
<typeof TokenCache
>) => Promise
<TokenCache
>
Type declaration
▸ (...args
): Promise
<TokenCache
>
Parameters
Name | Type |
---|---|
...args | ConstructorParameters <typeof TokenCache > |
Returns
Promise
<TokenCache
>
Defined in
packages/backend/server/src/cache-adapters/token-cache.ts:14
UserInfoCacheConfig
Ƭ UserInfoCacheConfig: CacheAdapterConfig
& { oidcClient
: BaseClient
}
Defined in
packages/backend/server/src/cache-adapters/user-info-cache.ts:10