go-saml | A just good enough SAML client library written in Go | Authentication library

 by   RobotsAndPencils Go Version: Current License: MIT

kandi X-RAY | go-saml Summary

kandi X-RAY | go-saml Summary

go-saml is a Go library typically used in Security, Authentication applications. go-saml has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A just good enough SAML client library written in Go.

            kandi-support Support

              go-saml has a low active ecosystem.
              It has 120 star(s) with 77 fork(s). There are 14 watchers for this library.
              It had no major release in the last 6 months.
              There are 13 open issues and 1 have been closed. There are 9 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of go-saml is current.

            kandi-Quality Quality

              go-saml has 0 bugs and 0 code smells.

            kandi-Security Security

              go-saml has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              go-saml code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              go-saml is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              go-saml releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 1211 lines of code, 50 functions and 13 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of go-saml
            Get all kandi verified functions for this library.

            go-saml Key Features

            No Key Features are available at this moment for go-saml.

            go-saml Examples and Code Snippets

            No Code Snippets are available at this moment for go-saml.

            Community Discussions


            Unable to create the correct signature for SAML response
            Asked 2020-Mar-23 at 19:01

            I am using go-saml library in our project to enable SSO in which the service provider will be Salesforce and Identity Provider will be the Golang code. Golang code will first verify the user then it will create a SAML response to allow the user to login to Salesforce. I am new to Golang and following Creating a SAML Response (if acting as an IdP) of this library. So, far I am able to create a SAML response using it but facing some challenges in customizing it as per the requirement.

            1. The first challenge I was facing is to add AudienceRestriction in the Conditions block as below:-


            I have tried to add it like below in the code, but it seems AudienceRestrictions is not defined in Conditions object.

            authnResponse := saml.NewSignedResponse() authnResponse.Conditions.AudienceRestrictions = "https://saml.salesforce.com"

            I don't find any way to add the above block in the Conditions block which is mandatory for Salesforce. Please suggest me some way to do so.

            1. I also have to add AuthnStatement below the conditions block as below:-


            1. Even after manually adding the above blocks in the SAML response, I am getting the below error while validating the SAML response using the Salesforce SAML validator

            Validating the Signature... Is the response signed? true
            Is the assertion signed? false
            The reference in the response signature is valid
            Is the correct certificate supplied in the keyinfo? true

            Signature or certificate problems
            The signature in the response is not valid

            I have generated a Public key(self-signed .pem certificate) and a Private key. After that, I have uploaded the public key to the Salesforce and using private and public keys to inside the code for generating SAML response. I have no idea why I am getting Signature Invalid error. Please let me know if you have any suggestions for me.

            In case you want to check my Golang code - https://play.golang.org/p/U9dXZblTHG1



            Answered 2020-Mar-23 at 19:01
            1. Audience can be added via a provided function:

            Source https://stackoverflow.com/questions/60736612

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network


            No vulnerabilities reported

            Install go-saml

            Here’s a convenient way to generate a certificate:.


            Would love any contributions you having including better documentation, tests, or more robust functionality.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
          • HTTPS


          • CLI

            gh repo clone RobotsAndPencils/go-saml

          • sshUrl


          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Authentication Libraries


            by supabase


            by google


            by monicahq


            by authelia


            by ory

            Try Top Libraries by RobotsAndPencils


            by RobotsAndPencilsSwift


            by RobotsAndPencilsSwift


            by RobotsAndPencilsGo


            by RobotsAndPencilsSwift


            by RobotsAndPencilsTypeScript