provider

package
v0.0.0-...-733e091 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

All 所有实例

Functions

func AccessTokenConverter

func AccessTokenConverter(config config.OAuth2, userConverter token.UserAuthenticationConverter) token.AccessTokenConverter

AccessTokenConverter token转换器

func AuthorizationAuthenticationManager

func AuthorizationAuthenticationManager(pc *securityContainer.AuthProvidersContainer) authentication.AuthorizationManager

AuthorizationAuthenticationManager 授权服务器中的认证管理器

func AuthorizationServerConfigurer

func AuthorizationServerConfigurer(manager authentication.AuthorizationManager) security.AuthorizationServerConfigurer

AuthorizationServerConfigurer 授权服务器配置

func AuthorizationServerTokenServices

func AuthorizationServerTokenServices(config config.OAuth2, tokenStore token.Store, common *securityContainer.CommonContainer, enhancer token.Enhancer, manager authentication.AuthorizationManager) token.AuthorizationServerTokenServices

AuthorizationServerTokenServices 授权服务器 token 服务

func BasicAuthenticationProvider

func BasicAuthenticationProvider(common *securityContainer.CommonContainer) *basic.AuthenticationProvider

BasicAuthenticationProvider 认证提供者,其中注入了 ClientDetailsUserDetailsService

func ClientDetailsService

func ClientDetailsService() clientdetails.Service

ClientDetailsService 客户端详情服务

func ConsumerTokenServices

func ConsumerTokenServices(tokenStore token.Store) token.ConsumerTokenServices

ConsumerTokenServices �令牌撤销

func DaoAuthenticationProvider

func DaoAuthenticationProvider(common *securityContainer.CommonContainer) *dao.AuthenticationProvider

DaoAuthenticationProvider UsernamePasswordAuthenticationToken 认证提供者

func JwtAccessTokenConverter

func JwtAccessTokenConverter(config config.OAuth2, tokenConverter token.AccessTokenConverter) *store.JwtAccessTokenConverter

JwtAccessTokenConverter 实例

func PasswordEncoder

func PasswordEncoder() password.Encoder

PasswordEncoder encoder

func PasswordTokenGranter

PasswordTokenGranter 密码模式授权

func PostChecker

func PostChecker() userdetails.PostChecker

PostChecker 后置检查器

func PreChecker

func PreChecker() userdetails.PreChecker

PreChecker 前置检查器

func ResourceAuthenticationManager

func ResourceAuthenticationManager(oauthConfig config.OAuth2, tokenService token.ResourceServerTokenServices) coreAuth.ResourceManager

ResourceAuthenticationManager 资源服务器中使用的认证管理器

func ResourceServerConfigurer

func ResourceServerConfigurer(tokenExtractor authentication.TokenExtractor, authenticationManager coreAuth.ResourceManager) security.ResourceServerConfigurer

ResourceServerConfigurer 资源服务器配置

func ResourceServerTokenServices

func ResourceServerTokenServices(tokenStore token.Store) token.ResourceServerTokenServices

ResourceServerTokenServices 资源服务器 token 服务

func TokenEndpoint

func TokenEndpoint(granter token.Granter, common *securityContainer.CommonContainer) *endpoint.TokenEndpoint

TokenEndpoint 端点

func TokenEndpointHTTPConfigurer

func TokenEndpointHTTPConfigurer(tokenEndpoint *endpoint.TokenEndpoint) endpoint.OAuth2HTTPConfigurer

TokenEndpointHTTPConfigurer 端点配置

func TokenEnhancer

func TokenEnhancer(oauth2Container *securityContainer.OAuth2Container) token.Enhancer

TokenEnhancer token增强,默认使用增强链

func TokenExtractor

func TokenExtractor() authentication.TokenExtractor

TokenExtractor TokenExtrator接口默认实现

func TokenGranter

func TokenGranter(password *granter.PasswordTokenGranter) token.Granter

TokenGranter token 授权

func TokenStore

func TokenStore(converter *store.JwtAccessTokenConverter) token.Store

TokenStore 实例

func UserAuthenticationConverter

func UserAuthenticationConverter() token.UserAuthenticationConverter

UserAuthenticationConverter 默认实现

func UserCache

func UserCache() userdetails.UserCache

UserCache 用户缓存

func UserDetailsService

func UserDetailsService() userdetails.Service

UserDetailsService 用户详情服务

Types

type ProvidersImpl

type ProvidersImpl struct {
	Basic *basic.AuthenticationProvider
	Dao   *dao.AuthenticationProvider
	// contains filtered or unexported fields
}

ProvidersImpl 接口实现

func (*ProvidersImpl) Add

func (p *ProvidersImpl) Add(item coreAuth.Provider)

Add 追加provider

func (*ProvidersImpl) Get

func (p *ProvidersImpl) Get() []coreAuth.Provider

Get 获取所有Provider

type WebSecurityConfigurersImpl

type WebSecurityConfigurersImpl struct {
	// contains filtered or unexported fields
}

WebSecurityConfigurersImpl 接口实现

func (*WebSecurityConfigurersImpl) Add

Add 追加

func (*WebSecurityConfigurersImpl) Get

Get 获取所有 WebSecurityConfigurer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL