Documentation
¶
Index ¶
- func CreateToken(w http.ResponseWriter, r *http.Request)
- func DoSamlLogout(w http.ResponseWriter, r *http.Request)
- func GetConfig(w http.ResponseWriter, r *http.Request)
- func GetIdentities(w http.ResponseWriter, r *http.Request)
- func GetRedirectURL(w http.ResponseWriter, r *http.Request)
- func GetSamlAuthToken(w http.ResponseWriter, r *http.Request)
- func HandleSamlPost(w http.ResponseWriter, r *http.Request)
- func NewRouter() *mux.Router
- func Reload(w http.ResponseWriter, r *http.Request)
- func ReturnHTTPError(w http.ResponseWriter, r *http.Request, httpStatus int, errorMessage string)
- func SearchIdentities(w http.ResponseWriter, r *http.Request)
- func TestLogin(w http.ResponseWriter, r *http.Request)
- func UpdateConfig(w http.ResponseWriter, r *http.Request)
- type Route
- type Routes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateToken ¶
func CreateToken(w http.ResponseWriter, r *http.Request)
CreateToken is a handler for route /token and returns the jwt token after authenticating the user
func DoSamlLogout ¶ added in v0.1.1
func DoSamlLogout(w http.ResponseWriter, r *http.Request)
DoSamlLogout redirects to Saml Logout
func GetConfig ¶
func GetConfig(w http.ResponseWriter, r *http.Request)
GetConfig is a handler for GET /config, lists the provider config
func GetIdentities ¶
func GetIdentities(w http.ResponseWriter, r *http.Request)
GetIdentities is a handler for route /me/identities and returns group memberships and details of the user
func GetRedirectURL ¶
func GetRedirectURL(w http.ResponseWriter, r *http.Request)
GetRedirectURL gets the redirect URL
func GetSamlAuthToken ¶ added in v0.1.0
func GetSamlAuthToken(w http.ResponseWriter, r *http.Request)
GetSamlAuthToken handles the SAML login using query parameters and creates an auth token calling cattle
func HandleSamlPost ¶ added in v0.1.0
func HandleSamlPost(w http.ResponseWriter, r *http.Request)
HandleSamlPost handles the SAML Post
func Reload ¶
func Reload(w http.ResponseWriter, r *http.Request)
Reload is a handler for POST /reloadconfig, reloads the config from Cattle database and initializes the provider
func ReturnHTTPError ¶
ReturnHTTPError handles sending out CatalogError response
func SearchIdentities ¶
func SearchIdentities(w http.ResponseWriter, r *http.Request)
SearchIdentities is a handler for route /identities and filters (id + type or name) and returns the search results using the passed filters
func TestLogin ¶ added in v0.4.3
func TestLogin(w http.ResponseWriter, r *http.Request)
TestLogin is a test API to check login with code before saving settings to db
func UpdateConfig ¶
func UpdateConfig(w http.ResponseWriter, r *http.Request)
UpdateConfig is a handler for POST /config, loads the provider with the config and saves the config back to Cattle database