Skip to main content

Class: AdminLinkUserInput

api-login/dto/link-user.dto.AdminLinkUserInput

Input type for an admin linking an authentication to a different user

Hierarchy​

Constructors​

constructor​

• new AdminLinkUserInput()

Inherited from​

RegistrationTokenInput.constructor

Properties​

register_token​

• register_token: string

The register token issued during as result of the oauth registration flow. Scope of the token must contain "login-register".

Must be given.

Example

"registration.token.jwt"

Inherited from​

RegistrationTokenInput.register_token

Defined in​

login-service/src/api-login/dto/link-user.dto.ts:16


• userIdToLink: string

The uuid string of ae existing LoginUser with which to link the authentication behind the registration token

Example

12345678-90ab-cdef-fedc-ab0987654321

Defined in​

login-service/src/api-login/dto/link-user.dto.ts:42

Methods​

check​

▸ Static check(input): AdminLinkUserInput

Checks that the given object contains a non empty string for the user id. Aso checks that it is a valid RegistrationTokenInput

Parameters​

NameTypeDescription
inputAdminLinkUserInputThe instance to check

Returns​

AdminLinkUserInput

The argument unchanged

Throws

HttpException BAD_REQUEST if invalid

Overrides​

RegistrationTokenInput.check

Defined in​

login-service/src/api-login/dto/link-user.dto.ts:52