Categorygithub.com/russellhaering/gosaml2
modulepackage
0.9.1
Repository: https://github.com/russellhaering/gosaml2.git
Documentation: pkg.go.dev

# README

gosaml2

Build Status GoDoc

SAML 2.0 implemementation for Service Providers based on etree and goxmldsig, a pure Go implementation of XML digital signatures.

Installation

Install gosaml2 into your $GOPATH using go get:

go get github.com/russellhaering/gosaml2

Example

See demo.go.

Supported Identity Providers

This library is meant to be a generic SAML implementation. If you find a standards compliant identity provider that it doesn't work with please submit a bug or pull request.

The following identity providers have been tested:

  • Okta
  • Auth0
  • Shibboleth
  • Ipsilon
  • OneLogin
  • Azure Active Directory (Azure AD)

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

DecodeUnverifiedBaseResponse decodes several attributes from a SAML response for the purpose of determining how to validate the response.
DecodeUnverifiedLogoutResponse decodes several attributes from a SAML Logout response, without doing any verifications.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Oft-used messages.
Oft-used messages.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Well-known methods of subject confirmation.
No description provided by the author

# Variables

ErrMissingAssertion indicates that an appropriate assertion element could notbe found in the SAML Response.

# Structs

No description provided by the author
AuthNRequest is the go struct representation of an authentication request.
ErrInvalidValue indicates that the expected value did not match the receivedvalue.
ErrMissingElement is the error type that indicates an element and/or attribute ismissing.
ErrParsing indicates that the value present in an assertion could not beparsed.
No description provided by the author
No description provided by the author
LogoutRequest is the go struct representation of a logout request.
No description provided by the author
RequestedAuthnContext controls which authentication mechanisms are requested of the identity provider.
No description provided by the author
No description provided by the author

# Type aliases

Values is a convenience wrapper for a map of strings to Attributes, which can be used for easy access to the string values of Attribute lists.