Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlpJwtAuth ¶
func NewJwtAuth ¶
func NewJwtAuth(processor TokenProcessor) AlpJwtAuth
func NewJwtAuthWithAccessControl ¶
func NewJwtAuthWithAccessControl(processor TokenProcessor, authorizer accesscontrol.AlpAuthorizer) AlpJwtAuth
type TokenProcessor ¶
type TokenProcessor interface {
Process(bearerToken string, r *http.Request) (valid bool, roles []string, err error)
}
func NewKeycloakTokenProcessor ¶
func NewKeycloakTokenProcessor(jwksUrl string) TokenProcessor
Click to show internal directories.
Click to hide internal directories.