saml

package
v0.0.0-...-f54fb7c Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SAMLRoot     = "/saml"
	SSOPath      = "/sso"
	InitiatePath = "/initiate"
)

Default paths for handling SAML requests.

Variables

This section is empty.

Functions

func RegisterAPIHandler

func RegisterAPIHandler(e *echo.Echo, s *Service)

RegisterAPIHandler registers endpoints used by SAML.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a SAML service capable of sending SAML requests and consuming responses.

func New

func New(db *db.PgDB, c config.SAMLConfig) (*Service, error)

New constructs a new SAML service that is capable of sending SAML requests and consuming responses.

func (*Service) MakeRedirectBinding

func (s *Service) MakeRedirectBinding(relayState string) (string, error)

MakeRedirectBinding makes a SAML redirect binding as described at https://en.wikipedia.org/wiki/SAML_2.0#HTTP_Redirect_Binding.

Jump to

Keyboard shortcuts

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