Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrFailedToEncodeForKeyring = errors.New("failed to encode for keyring") ErrFailedContactingKeyring = errors.New("failed to contact keyring invalid response") ErrDecodingKeyringResponse = errors.New("failed to decode keyring response") ErrAuthorizationMissing = errors.New("authorization missing") ErrMissingScheme = errors.New("missing `X-Forwarded-Proto`") ErrMissingHost = errors.New("missing `X-Forwarded-Host`") ErrMissingRequestMethod = errors.New("missing `X-Forwarded-Method`") ErrMissingRequestURI = errors.New("missing `X-Forwarded-Uri`") ErrFailedParsingAudience = errors.New("failed to parse audience value") ErrFailedAudienceCheck = errors.New("failed audience check") )
Functions ¶
This section is empty.
Types ¶
type AllowedAudience ¶
func ParseAudienceValue ¶
func ParseAudienceValue(s string) (*AllowedAudience, error)
func (*AllowedAudience) CheckMethod ¶
func (m *AllowedAudience) CheckMethod(method string) bool
func (*AllowedAudience) CheckURL ¶
func (m *AllowedAudience) CheckURL(url string) bool
type Authenticate ¶
type AuthenticatedFor ¶
type AuthenticatedFor struct { // UUID v4 RequestID *string `json:"RequestID,omitempty"` // UUID v4 KeyID string `json:"KeyID,omitempty"` // UUID v4 TenantID string `json:"TenantID,omitempty"` // UUID v4 Identity *string `json:"Identity,omitempty"` // UUID v4 Organization *string `json:"Organization,omitempty"` // UUID v4 Customer *string `json:"Customer,omitempty"` Audience []string `json:"Audience,omitempty"` Origin *string `json:"Origin,omitempty"` // comma separate list of CIDR notation networks that are allowed. CIDRs *string `json:"CIDRs,omitempty"` IP *string `json:"IP,omitempty"` }
type Client ¶
type Client interface {
Authenticate(authenticate Authenticate) (*AuthenticatedFor, error)
}
Source Files ¶
Click to show internal directories.
Click to hide internal directories.