Back to Open Source

go-saml

High-level API library for Single Sign On with SAML 2.0 based on etree and signedxml, a pure Go implementation. The library provides the Identity Provider Implementation with support of both IDPInitiated and SPInitiated flow.

Features

  • Generating identity provider metadata
  • Validating Redirect/Post Binding signed/unsigned AuthnRequests
  • Generating Post signed Responses
  • Validating Redirect/Post Binding signed/unsigned LogoutRequest
  • Generating Post signed LogoutResponses
  • SessionIndex

Installation

Install into your using go get:

Usage

Below are samples to show how you might use the library.

Create Idp Provider Instance
Validate and Parse AuthnRequest
Generate Login Response
Validate and Parse Logout Request
Generate Logout Response
Metadata Identity Provider
Example

Please see examples for how to use the library to be an identity provider.

Contributing

Would love any contribution by you, including better documentation, tests or more robust functionality. Please follow the contributing guide

License

MIT

Further Documentation

Find out the documentation for all the commands supported in LoginRadius CLI.
Our Docs