Aller au contenu principal
Version: Next

AuthOptions

Hierarchy

Index

Properties

authType

authType: AuthType

验权类型 basic => http basic 验证 bearer => http jwt 验证 cookie => cookie 方式验证 oauth2 => 使用 oauth2 apikey => apiKey custom => 自定义方式

optionalbearerFormat

bearerFormat?: string

optionalcookieName

cookieName?: string

authType = cookie 时可以修改,cookie 的名称

optionaldescription

description?: string

optionalflows

optionalin

in?: string

optionalname

name?: string

optionalopenIdConnectUrl

openIdConnectUrl?: string

optionalscheme

scheme?: string

optionalsecurityName

securityName?: string

authType = cookie 时可以修改,通过 ApiCookie 装饰器关联的名称

optionaltype