Documentation
¶
Index ¶
- func TokenToHeader(token string) http.Header
- type AuthorizationError
- type ErrorInvalidPayload
- type IntrospectResponse
- type OAuthServicesConfig
- type Service
- func (s *Service) GetAllRoles(token string) (permissions.RoleSystem, error)
- func (s *Service) GetAuthorizeRoute() string
- func (s *Service) GetLogoutRoute(intended string) string
- func (s *Service) GetTokenFromAuthorizationCode(code string) (string, error)
- func (s *Service) Introspect(token string) (user.User, error)
- func (s *Service) MustInvalidateRolesCache() error
- type UnauthorizedError
- type UnknownError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TokenToHeader ¶
Types ¶
type AuthorizationError ¶
type AuthorizationError struct{}
func (*AuthorizationError) Error ¶
func (e *AuthorizationError) Error() string
type ErrorInvalidPayload ¶
type ErrorInvalidPayload struct {
// contains filtered or unexported fields
}
func NewErrorInvalidPayload ¶
func NewErrorInvalidPayload(message string) *ErrorInvalidPayload
func (*ErrorInvalidPayload) Error ¶
func (e *ErrorInvalidPayload) Error() string
func (*ErrorInvalidPayload) Unwrap ¶
func (e *ErrorInvalidPayload) Unwrap() error
type IntrospectResponse ¶
type IntrospectResponse struct {
Status string `json:"status"`
Data user.OAuthUserImplementationV2 `json:"data"`
Message string `json:"message"`
}
type OAuthServicesConfig ¶
type Service ¶ added in v1.2.0
type Service struct {
RoleSystem permissions.RoleSystem
// contains filtered or unexported fields
}
func (*Service) GetAllRoles ¶ added in v1.2.0
func (s *Service) GetAllRoles(token string) (permissions.RoleSystem, error)
func (*Service) GetAuthorizeRoute ¶ added in v1.2.0
func (*Service) GetLogoutRoute ¶ added in v1.2.0
func (*Service) GetTokenFromAuthorizationCode ¶ added in v1.2.0
func (*Service) Introspect ¶ added in v1.2.0
func (*Service) MustInvalidateRolesCache ¶ added in v1.2.0
type UnauthorizedError ¶
type UnauthorizedError struct{}
func (*UnauthorizedError) Error ¶
func (e *UnauthorizedError) Error() string
func (*UnauthorizedError) Unwrap ¶
func (e *UnauthorizedError) Unwrap() error
type UnknownError ¶
type UnknownError struct {
// contains filtered or unexported fields
}
func NewUnknownError ¶
func NewUnknownError(message string) *UnknownError
func (*UnknownError) Error ¶
func (e *UnknownError) Error() string
func (*UnknownError) Unwrap ¶
func (e *UnknownError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.