Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckToken ¶
Types ¶
type AuthCheckAdapter ¶
type AuthCheckAdapter struct {
// contains filtered or unexported fields
}
AuthCheckAdapter supports metric template.
func (*AuthCheckAdapter) Addr ¶
func (s *AuthCheckAdapter) Addr() string
Addr returns the listening address of the server
func (*AuthCheckAdapter) Close ¶
func (s *AuthCheckAdapter) Close() error
Close gracefully shuts down the server; used for testing
func (*AuthCheckAdapter) HandleAuthorization ¶
func (s *AuthCheckAdapter) HandleAuthorization(ctx context.Context, r *authorization.HandleAuthorizationRequest) (*v1beta1.CheckResult, error)
HandleAuthorization - Perform the authorization check.
func (*AuthCheckAdapter) Run ¶
func (s *AuthCheckAdapter) Run(shutdown chan error)
Run starts the server run
type AuthResult ¶
type Server ¶
Server is basic server interface
func NewAuthCheckAdapter ¶
NewAuthCheckAdapter creates a new IBP adapter that listens at provided port.
type ServerAClaims ¶
type ServerAClaims struct { Roles []string `json:"roles"` AuthToken string `json:"auth_token"` jwt.StandardClaims }
The ServerAClaims is used as the claims portion of the JWT.
Click to show internal directories.
Click to hide internal directories.