Skip to main content

service/domain/organization/auth_token

Api Code Documentation / Exports / service/domain/organization/auth_token

Table of contents#

Interfaces#

Functions#

Functions#

canAssumeIdentity#

canAssumeIdentity(user, identity): boolean

Parameters#

NameType
userObject
user.groupsstring[]
user.idstring
identitystring

Returns#

boolean

Defined in#

src/service/domain/organization/auth_token.ts:21


fromUserRecord#

fromUserRecord(user, repository): Promise<Type<AuthToken>>

Parameters#

NameType
userUserRecord
repositoryRepository

Returns#

Promise<Type<AuthToken>>

Defined in#

src/service/domain/organization/auth_token.ts:36


permits#

permits(permissions, actingUser, intents): boolean

Parameters#

NameType
permissionsPermissions
actingUserServiceUser
intentsdefault[]

Returns#

boolean

Defined in#

src/service/domain/organization/auth_token.ts:80