Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolV2 = "2" ProtocolV3 = "3" )
Variables ¶
View Source
var ( ErrDisabled = errors.New("cas login is disabled") ErrAuthenticationFailed = errors.New("cas authentication failed") )
Functions ¶
func SafeRedirect ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientWithHTTPClient ¶
type Config ¶
type Config struct {
Enabled bool `mapstructure:"enabled" yaml:"enabled"`
ServerURL string `mapstructure:"server_url" yaml:"server_url"`
CallbackURL string `mapstructure:"callback_url" yaml:"callback_url"`
RequestTimeout time.Duration `mapstructure:"request_timeout" yaml:"request_timeout"`
Protocol string `mapstructure:"protocol" yaml:"protocol"`
SubjectAttribute string `mapstructure:"subject_attribute" yaml:"subject_attribute"`
}
func (Config) Normalized ¶
Click to show internal directories.
Click to hide internal directories.