saml

package module
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const SAML_CERT_FILE = "saml_service.cert"

TODO - Move this to configmap

View Source
const SAML_KEY_FILE = "saml_service.key"

Variables

View Source
var SAML_CALLBACK_URL = strings.TrimSpace(os.Getenv("SAML_CALLBACK_URL"))
View Source
var SAML_ISSUER = strings.TrimSpace(os.Getenv("SAML_ISSUER"))
View Source
var SAML_LOGIN_URL = strings.TrimSpace(os.Getenv("SAML_LOGIN_URL"))
View Source
var SAML_METADATA_URL = strings.TrimSpace(os.Getenv("SAML_METADATA_URL"))

Functions

func RegisterSamlAuth

func RegisterSamlAuth(rg *mux.Router, callbackUrl string, handleUser HandleUserFunc) (err error)

TODO - also pass saml params for configuration

Types

type HandleUserFunc

type HandleUserFunc func(authtype string, provider string, token *oauth2.Token, userInfo map[string]any, w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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