Documentation ¶
Index ¶
- func KeycloakClientRoles(token oauth.Identity, client string) ([]string, error)
- func KeycloakClients(token oauth.Identity) (map[string][]string, error)
- func KeycloakRealmRoles(token oauth.Identity) ([]string, error)
- type CallIdentifier
- type CallIdentifierFactory
- type IdentityService
- func (service *IdentityService) Identify(ctx context.Context) auth.Identity
- func (service *IdentityService) IdentifyAll(ctx context.Context) []auth.Identity
- func (service *IdentityService) IdentifyAs(ctx context.Context, checkType auth.IdentityTypeChecker) (auth.Identity, error)
- func (service *IdentityService) IdentifyFor(ctx context.Context, identifier string) (auth.Identity, error)
- func (service *IdentityService) Inject(providers []CallIdentifier) *IdentityService
- type Module
- type ServerModule
- type ServerRegister
- type ServerRegistrar
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeycloakClientRoles ¶
Types ¶
type CallIdentifier ¶
type CallIdentifierFactory ¶
type CallIdentifierFactory func(config config.Map) (CallIdentifier, error)
type IdentityService ¶
type IdentityService struct {
// contains filtered or unexported fields
}
func (*IdentityService) Identify ¶
func (service *IdentityService) Identify(ctx context.Context) auth.Identity
func (*IdentityService) IdentifyAll ¶
func (service *IdentityService) IdentifyAll(ctx context.Context) []auth.Identity
func (*IdentityService) IdentifyAs ¶
func (service *IdentityService) IdentifyAs(ctx context.Context, checkType auth.IdentityTypeChecker) (auth.Identity, error)
IdentifyAs returns an identity for a given interface identity, err := s.IdentifyAs(ctx, request, OpenIDTypeChecker) identity.(oauth.OpenIDIdentity)
func (*IdentityService) IdentifyFor ¶
func (*IdentityService) Inject ¶
func (service *IdentityService) Inject(providers []CallIdentifier) *IdentityService
type ServerModule ¶
type ServerModule struct{}
func (*ServerModule) Configure ¶
func (*ServerModule) Configure(injector *dingo.Injector)
func (*ServerModule) Depends ¶
func (*ServerModule) Depends() []dingo.Module
type ServerRegister ¶
type ServerRegister func(server ServerRegistrar)
type ServerRegistrar ¶
type ServerRegistrar grpc.ServiceRegistrar
Click to show internal directories.
Click to hide internal directories.