Documentation ¶
Index ¶
- Variables
- func DIProviderSet() *di.ProviderSet
- func IngotEnhancerChain(jwt *store.JwtAccessTokenConverter) *token.IngotEnhancerChain
- func NewConfig(options *config.Options) (*config.Config, error)
- func PermitURLMatcher(securityConfig appConfig.Security) utils.RequestMatcher
- func ResourceServerAdapter(tokenExtractor authentication.TokenExtractor, ...) *config.ResourceServerAdapter
Constants ¶
This section is empty.
Variables ¶
View Source
var AllFactory = wire.NewSet( factory.Config, factory.NewCasbin, factory.NewGorm, factory.NewIDGenerator, )
AllFactory 所有的
View Source
var AllSet = wire.NewSet( set.APISet, set.DaoSet, set.ServiceSet, )
AllSet 所有的结构集
View Source
var IngotUserAuthenticationConverter = wire.Struct(new(token.IngotUserAuthenticationConverter), "*")
IngotUserAuthenticationConverter 自定义
View Source
var SecurityClientDetailsService = wire.Struct(new(service.ClientDetails), "*")
SecurityClientDetailsService 服务实现
View Source
var SecurityInjector = wire.NewSet( wire.Struct(new(config.IngotContainerInjector), "*"), wire.Bind(new(container.ContainerInjector), new(*config.IngotContainerInjector)), SecurityClientDetailsService, SecurityUserDetailsService, ResourceServerAdapter, PermitURLMatcher, IngotEnhancerChain, IngotUserAuthenticationConverter, DIProviderSet, )
SecurityInjector 注入器
View Source
var SecurityUserDetailsService = wire.Struct(new(service.UserDetails), "*")
SecurityUserDetailsService 服务实现
Functions ¶
func DIProviderSet ¶
func DIProviderSet() *di.ProviderSet
func IngotEnhancerChain ¶
func IngotEnhancerChain(jwt *store.JwtAccessTokenConverter) *token.IngotEnhancerChain
IngotEnhancerChain token 增强
func PermitURLMatcher ¶
func PermitURLMatcher(securityConfig appConfig.Security) utils.RequestMatcher
PermitURLMatcher 忽略请求匹配器
func ResourceServerAdapter ¶
func ResourceServerAdapter(tokenExtractor authentication.TokenExtractor, resourceManager securityAuth.ResourceManager, ignore utils.RequestMatcher) *config.ResourceServerAdapter
ResourceServerAdapter 自定义适配器
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.