shibbolethecp

package
v2.34.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: MIT Imports: 18 Imported by: 0

README

ShibbolethECP

This provider implements the Shibboleth ECP (Enhanced Client Proxy) protocol as defined in [1] as described at [2]. It also supports Duo (the AuthAPI[3] login flow in Shibboleth-IDP v3.4+) by allowing you to set the MFA device for your account to one of auto, push, phone, or passcode. If the MFA factor is passcode, you will be prompted for a 6-digit passcode.

Usage

The URL for the IDP Account should be set to something of the form https://your-idp.example.com/idp/profile/SAML2/SOAP/ECP.

Credits

Inspiration came from:

[1] http://docs.oasis-open.org/security/saml/Post2.0/sstc-saml-tech-overview-2.0-cd-02.html [2] https://wiki.shibboleth.net/confluence/display/CONCEPT/ECP [3] https://wiki.shibboleth.net/confluence/display/IDP30/DuoAuthnConfiguration#DuoAuthnConfiguration-AuthAPIandNon-Browser/ECPUse

Documentation

Index

Constants

View Source
const SAML_SUCCESS = "urn:oasis:names:tc:SAML:2.0:status:Success"
View Source
const SHIB_DUO_FACTOR = "X-Shibboleth-Duo-Factor"
View Source
const SHIB_DUO_PASSCODE = "X-Shibboleth-Duo-Passcode"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	provider.ValidateBase
	// contains filtered or unexported fields
}

Client wrapper around shibbolethecp enabling authentication and retrieval of assertions

func New

func New(idpAccount *cfg.IDPAccount) (*Client, error)

New creates a new shibboleth-ecp client

func (*Client) Authenticate

func (c *Client) Authenticate(loginDetails *creds.LoginDetails) (string, error)

Authenticate authenticates to a Shibboleth ECP profile and return the data from the body of the SAML assertion.

Jump to

Keyboard shortcuts

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