first commit

This commit is contained in:
Дмитрий Мамедов
2026-06-10 16:23:41 +03:00
commit f37733a5c9
70 changed files with 16338 additions and 0 deletions

View 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;
}

30
src/oidc/dto/token.dto.ts Normal file
View File

@@ -0,0 +1,30 @@
import { IsString, IsOptional } from 'class-validator';
export class TokenDto {
@IsString()
grant_type!: string;
@IsOptional()
@IsString()
code?: string;
@IsOptional()
@IsString()
refresh_token?: string;
@IsOptional()
@IsString()
client_id?: string;
@IsOptional()
@IsString()
client_secret?: string;
@IsOptional()
@IsString()
redirect_uri?: string;
@IsOptional()
@IsString()
code_verifier?: string;
}