Documentation ¶
Index ¶
- func APIHandler(w http.ResponseWriter, r *http.Request)
- func AuthMiddleware(handler http.Handler) http.Handler
- func ExposeMetadata(w http.ResponseWriter, r *http.Request)
- func IndexHandler(w http.ResponseWriter, r *http.Request)
- func InitKeyStore()
- func LoadSP()
- func RedirectToIDP(w http.ResponseWriter, r *http.Request)
- func SAMLCallback(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIHandler ¶
func APIHandler(w http.ResponseWriter, r *http.Request)
APIHandler is handles all external calls to the API
func AuthMiddleware ¶
AuthMiddleware checks if the user is logged in. If they are not, it redirects them to the login page.
func ExposeMetadata ¶
func ExposeMetadata(w http.ResponseWriter, r *http.Request)
ExposeMetadata displays the metadata for the application
func IndexHandler ¶
func IndexHandler(w http.ResponseWriter, r *http.Request)
IndexHandler serves the home page with the form for submitting internal requests to etla-ec
func InitKeyStore ¶
func InitKeyStore()
InitKeyStore loads the keys for creating the service provider.
func RedirectToIDP ¶
func RedirectToIDP(w http.ResponseWriter, r *http.Request)
RedirectToIDP takes the place of a login form in a SAMLV2 context
func SAMLCallback ¶
func SAMLCallback(w http.ResponseWriter, r *http.Request)
SAMLCallback receives assertions from the IDP.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.