service

package
v0.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 NewRouter

func NewRouter() *mux.Router

NewRouter creates and configures a mux router

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

func ReturnHTTPError(w http.ResponseWriter, r *http.Request, httpStatus int, errorMessage string)

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

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Route defines the properties of a go mux http route

type Routes

type Routes []Route

Routes array of Route defined

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL