Documentation
¶
Index ¶
- Variables
- func CreateToken(json map[string]string) (model.Token, error)
- func GetConfig(accessToken string, listOnly bool) (model.AuthConfig, error)
- func GetIdentities(accessToken string) ([]client.Identity, error)
- func GetIdentity(externalID string, externalIDType string, accessToken string) (client.Identity, error)
- func GetRancherAPIHost() string
- func GetRedirectURL() (map[string]string, error)
- func GetSamlAuthToken(samlData map[string][]string) (string, error)
- func GetSamlRedirectURL(redirectBackBase string, redirectBackPath string) string
- func IsSamlJWTValid(value string) (bool, map[string][]string)
- func RefreshToken(json map[string]string) (model.Token, error)
- func Reload() error
- func SearchIdentities(name string, exactMatch bool, accessToken string) ([]client.Identity, error)
- func SetEnv(c *cli.Context)
- func TestLogin(testAuthConfig model.TestAuthConfig) error
- func URLEncoded(str string) string
- func UpdateConfig(authConfig model.AuthConfig) error
- func UpgradeCase() error
- func UpgradeSettings() error
- type AESSecret
Constants ¶
This section is empty.
Variables ¶
var ( //RancherClient is the client configured to connect to Cattle RancherClient *client.RancherClient //IDPMetadataFile is the path to the metadata file of the Shibboleth IDP IDPMetadataFile string //SamlServiceProvider is the handle to the SamlServiceProvider configured by the router SamlServiceProvider *samlsp.Middleware )
Functions ¶
func CreateToken ¶
CreateToken will authenticate with provider and create a jwt token
func GetConfig ¶
func GetConfig(accessToken string, listOnly bool) (model.AuthConfig, error)
GetConfig gets the config from DB, gathers the list of settings to read from DB
func GetIdentities ¶
GetIdentities will list all identities for token
func GetIdentity ¶
func GetIdentity(externalID string, externalIDType string, accessToken string) (client.Identity, error)
GetIdentity will list all identities for given filters
func GetRancherAPIHost ¶ added in v0.1.0
func GetRancherAPIHost() string
GetRancherAPIHost reads the api.host setting
func GetRedirectURL ¶
GetRedirectURL returns the redirect URL for the provider if applicable
func GetSamlAuthToken ¶ added in v0.1.0
GetSamlAuthToken handles the SAML assertions posted by an IDP
func GetSamlRedirectURL ¶ added in v0.1.1
GetSamlRedirectURL returns the redirect URL for SAML login flow
func IsSamlJWTValid ¶ added in v0.1.1
IsSamlJWTValid verfies the saml JWT token
func RefreshToken ¶
RefreshToken will refresh a jwt token
func SearchIdentities ¶
SearchIdentities will list all identities for given filters
func TestLogin ¶ added in v0.4.3
func TestLogin(testAuthConfig model.TestAuthConfig) error
func UpdateConfig ¶
func UpdateConfig(authConfig model.AuthConfig) error
UpdateConfig updates the config in DB
func UpgradeCase ¶ added in v0.4.5
func UpgradeCase() error
func UpgradeSettings ¶
func UpgradeSettings() error
UpgradeSettings upgrades the existing provider specific auth settings to the new generic settings used by this service