Class: AdminLinkUserInput
api-login/auth/dto/link-user.dto.AdminLinkUserInput
Input type for an admin linking an authentication to a different user
Hierarchy
↳
AdminLinkUserInput
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
gropius-login-service/backend/src/api-login/auth/dto/link-user.dto.ts:16
userIdToLink
• 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
gropius-login-service/backend/src/api-login/auth/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
Name | Type | Description |
---|---|---|
input | AdminLinkUserInput | The instance to check |
Returns
The argument unchanged
Throws
HttpException BAD_REQUEST if invalid
Overrides
Defined in
gropius-login-service/backend/src/api-login/auth/dto/link-user.dto.ts:52