interface AuthenticationServiceCollectionExtensions
cangjie
public interface AuthenticationServiceCollectionExtensions功能:定义服务集合的身份验证注册扩展。
扩展到
成员概览
| 成员 | 功能 |
|---|---|
| func addAuthentication() | 使用默认配置注册身份验证服务。 |
| func addAuthentication(String) | 使用默认方案注册身份验证服务。 |
| func addAuthentication((AuthenticationOptions) -> Unit) | 使用自定义选项注册身份验证服务。 |
func addAuthentication()
cangjie
func addAuthentication(): AuthenticationBuilder功能:使用默认配置注册身份验证服务。
返回值:
- AuthenticationBuilder - 身份验证构建器。
func addAuthentication(String)
cangjie
func addAuthentication(defaultScheme: String): AuthenticationBuilder功能:使用默认方案注册身份验证服务。
参数:
- defaultScheme:
String- 默认方案名称。
返回值:
- AuthenticationBuilder - 身份验证构建器。
func addAuthentication((AuthenticationOptions) -> Unit)
cangjie
func addAuthentication(configureOptions: (AuthenticationOptions) -> Unit): AuthenticationBuilder功能:使用自定义选项注册身份验证服务。
参数:
- configureOptions: (AuthenticationOptions) -> Unit - 身份验证选项配置回调。
返回值:
- AuthenticationBuilder - 身份验证构建器。