Documentation ¶
Index ¶
- func GetKeyFromJWKS(jwks *jwk.JWKS, token *jwt.Token) (interface{}, error)
- type AccessControl
- type BasicAuth
- type DisablePrivateCaching
- type JWT
- type JWTOptions
- type JWTSource
- type JWTSourceType
- type List
- type ListItem
- type Map
- type OAuth2Callback
- type ProtectedHandler
- type Saml2
- type ScopeControl
- type ValidateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetKeyFromJWKS ¶ added in v1.7.0
Types ¶
type AccessControl ¶
type BasicAuth ¶
type BasicAuth struct {
// contains filtered or unexported fields
}
BasicAuth represents an AC-BasicAuth object
func NewBasicAuth ¶
NewBasicAuth creates a new AC-BasicAuth object
type DisablePrivateCaching ¶ added in v1.8.0
type DisablePrivateCaching interface {
DisablePrivateCaching() bool
}
type JWT ¶
type JWT struct {
// contains filtered or unexported fields
}
func NewJWT ¶
func NewJWT(options *JWTOptions) (*JWT, error)
NewJWT parses the key and creates Validation obj which can be referenced in related handlers.
func NewJWTFromJWKS ¶
func NewJWTFromJWKS(options *JWTOptions) (*JWT, error)
func (*JWT) DisablePrivateCaching ¶ added in v1.8.0
type JWTOptions ¶
type JWTSource ¶
type JWTSource struct { Expr hcl.Expression Name string Type JWTSourceType }
func NewJWTSource ¶
type JWTSourceType ¶
type JWTSourceType uint8
const ( Invalid JWTSourceType = iota Cookie Header Value )
type ListItem ¶
type ListItem struct {
// contains filtered or unexported fields
}
func NewItem ¶
func NewItem(nameLabel string, control AccessControl, errHandler http.Handler) *ListItem
func (ListItem) DisablePrivateCaching ¶ added in v1.8.0
func (ListItem) ErrorHandler ¶
type Map ¶
type Map map[string]AccessControl
type OAuth2Callback ¶
type OAuth2Callback struct {
// contains filtered or unexported fields
}
OAuth2Callback represents the access control for the OAuth2 authorization code flow callback.
func NewOAuth2Callback ¶
func NewOAuth2Callback(oauth2Client oauth2.AcClient) (*OAuth2Callback, error)
NewOAuth2Callback creates a new access control for the OAuth2 authorization code flow callback.
type ProtectedHandler ¶
type Saml2 ¶
type Saml2 struct {
// contains filtered or unexported fields
}
func NewSAML2ACS ¶
func (*Saml2) GetAssertionData ¶
func (s *Saml2) GetAssertionData(assertionInfo *saml2.AssertionInfo) map[string]interface{}
func (*Saml2) ValidateAssertionInfo ¶
func (s *Saml2) ValidateAssertionInfo(assertionInfo *saml2.AssertionInfo) error
type ScopeControl ¶
type ScopeControl struct {
// contains filtered or unexported fields
}
func NewScopeControl ¶
func NewScopeControl(scopeMaps []map[string]string) *ScopeControl
Source Files ¶
Click to show internal directories.
Click to hide internal directories.