Class: CreateOrUpdateAuthClientInput
api-login/dto/create-update-auth-client.dto.CreateOrUpdateAuthClientInput
Input to POST /login/client
and PUT /login/client/:id`
Contains data to create or modify a auth client
Constructors
constructor
• new CreateOrUpdateAuthClientInput()
Properties
isValid
• Optional
isValid: boolean
If given, sets the validity flag of the auth client.
Defaults to true
on create
Example
true
Defined in
login-service/src/api-login/dto/create-update-auth-client.dto.ts:31
name
• Optional
name: string
The name to set for the auth client.
If given, must be non empty and match /^[a-zA-Z0-9+/-_= ]+$/g
Defined in
login-service/src/api-login/dto/create-update-auth-client.dto.ts:14
redirectUrls
• Optional
redirectUrls: string
[]
A list of url strings containing at least one url. These are the URLs the oauth autorize endpoint will redirect back to
Defaults to []
on create
Example
["https://example.com/oauth/callback?query=value"]
Defined in
login-service/src/api-login/dto/create-update-auth-client.dto.ts:23
requiresSecret
• Optional
requiresSecret: boolean
If given, setns the need for the client to authenticate using a secret
Defaults to true
on create
Example
false
Defined in
login-service/src/api-login/dto/create-update-auth-client.dto.ts:39
Methods
check
▸ Static
check(input
): CreateOrUpdateAuthClientInput
Checks a given CreateOrUpdateAuthClientInput
for validity.
Valid, if:
name
is not given or a non empty string matching /^[a-zA-Z0-9+/-_= ]+$/gredirectUrls
is not given or an array of at least one urlisValid
is not given or a booleanrequiresSecret
is not given or a boolean
Parameters
Name | Type | Description |
---|---|---|
input | CreateOrUpdateAuthClientInput | The input instance to check |
Returns
The given instance unchanged
Defined in
login-service/src/api-login/dto/create-update-auth-client.dto.ts:52