saml

package module
v0.3.28 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2026 License: Apache-2.0 Imports: 15 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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