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:25


fromUserRecord

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

Parameters

NameType
userUserRecord
repositoryRepository
metadata?UserMetadata

Returns

Promise<Type<AuthToken>>

Defined in

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


permits

permits(permissions, actingUser, intents): boolean

Parameters

NameType
permissionsPermissions
actingUserServiceUser
intentsdefault[]

Returns

boolean

Defined in

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