first commit
This commit is contained in:
28
src/oidc/dto/authorize.dto.ts
Normal file
28
src/oidc/dto/authorize.dto.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { IsString, IsOptional } from 'class-validator';
|
||||
|
||||
export class AuthorizeDto {
|
||||
@IsString()
|
||||
response_type!: string;
|
||||
|
||||
@IsString()
|
||||
client_id!: string;
|
||||
|
||||
@IsString()
|
||||
redirect_uri!: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
scope?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
state?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
code_challenge?: string;
|
||||
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
code_challenge_method?: string;
|
||||
}
|
||||
Reference in New Issue
Block a user