Documentation ¶
Index ¶
- Variables
- func Metadata() (string, error)
- type AuthnRequestData
- type BaseConfig
- type SAMLAuthParser
- type SAMLAuthScheme
- func (s *SAMLAuthScheme) AppLogin(appName string) (auth.Token, error)
- func (s SAMLAuthScheme) AppLogout(token string) error
- func (s *SAMLAuthScheme) Auth(token string) (auth.Token, error)
- func (s *SAMLAuthScheme) Create(user *auth.User) (*auth.User, error)
- func (s *SAMLAuthScheme) Info() (auth.SchemeInfo, error)
- func (s *SAMLAuthScheme) Login(params map[string]string) (auth.Token, error)
- func (s *SAMLAuthScheme) Logout(token string) error
- func (s *SAMLAuthScheme) Name() string
- func (s *SAMLAuthScheme) Parse(xml string) (*saml.Response, error)
- func (s *SAMLAuthScheme) Remove(u *auth.User) error
- type Token
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRequestIdNotFound = &tsuruErrors.ValidationError{Message: "Field attribute InResponseTo not found in saml response data"} ErrCheckSignature = &tsuruErrors.ValidationError{Message: "SAMLResponse signature validation"} )
View Source
var ( ErrMissingRequestIdError = &tsuruErrors.ValidationError{Message: "You must provide RequestID to login"} ErrMissingFormValueError = &tsuruErrors.ValidationError{Message: "SAMLResponse form value missing"} ErrParseResponseError = &tsuruErrors.ValidationError{Message: "SAMLResponse parse error"} ErrEmptyIDPResponseError = &tsuruErrors.ValidationError{Message: "SAMLResponse form value missing"} ErrRequestWaitingForCredentials = &tsuruErrors.ValidationError{Message: "Waiting credentials from IDP"} )
View Source
var (
ErrRequestNotFound = &errors.ValidationError{Message: "request not found or expired"}
)
Functions ¶
Types ¶
type AuthnRequestData ¶
type BaseConfig ¶
type SAMLAuthParser ¶
type SAMLAuthScheme ¶
type SAMLAuthScheme struct { BaseConfig BaseConfig Parser SAMLAuthParser }
func (*SAMLAuthScheme) AppLogin ¶
func (s *SAMLAuthScheme) AppLogin(appName string) (auth.Token, error)
func (SAMLAuthScheme) AppLogout ¶
func (s SAMLAuthScheme) AppLogout(token string) error
func (*SAMLAuthScheme) Info ¶
func (s *SAMLAuthScheme) Info() (auth.SchemeInfo, error)
func (*SAMLAuthScheme) Logout ¶
func (s *SAMLAuthScheme) Logout(token string) error
func (*SAMLAuthScheme) Name ¶
func (s *SAMLAuthScheme) Name() string
func (*SAMLAuthScheme) Parse ¶
func (s *SAMLAuthScheme) Parse(xml string) (*saml.Response, error)
type Token ¶
type Token struct { Token string `json:"token"` Creation time.Time `json:"creation"` Expires time.Duration `json:"expires"` UserEmail string `json:"email"` AppName string `json:"app"` }
func (*Token) GetAppName ¶
func (*Token) GetUserName ¶
func (*Token) IsAppToken ¶
func (*Token) Permissions ¶
func (t *Token) Permissions() ([]permission.Permission, error)
Click to show internal directories.
Click to hide internal directories.