saml

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: AGPL-3.0 Imports: 21 Imported by: ? 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

Overview

Package saml provides an Authentication Handler for authenticating over SAML

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SAML

type SAML struct {
	SPPublicKey string

	SPPrivatekey string

	JWTPrivatekey string

	HTTPClient http.Client `toml:"-"`
	Domain     string      `toml:"domain"`
	Cookiename string
	// contains filtered or unexported fields
}

SAML is an Applicance to react on Events from the SAML-IDP and that provides an interface to get data from the IDP in a standartised fashion.

func (*SAML) Account

func (s *SAML) Account(c *gin.Context) auth.Account

Account returns the Account representation of the user

func (*SAML) Defaults

func (s *SAML) Defaults() httpserver.SiteConfig

Defaults returns the default values for the config

func (*SAML) Init

func (s *SAML) Init(router *gin.RouterGroup)

Init initalizes the routes

func (*SAML) Setup

func (s *SAML) Setup(config httpserver.SiteConfig) (err error)

Setup sets the saml object up.

Jump to

Keyboard shortcuts

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