'How to process SAML Response in Go Lang?

I want to process SAML response token returned by Identity provider to programmatically access Service provider. I had a look at Go library crewjam but could not clearly understand how to achieve my requirement.

I also learnt from net that some people are using C libraries to process SAML token. I am looking for guidance around processing and validating SAML Token in Golang so that I can authenticate user against Service Provider.

I tried SAML POC using Identity provider as Azure and Service provider as DropBox and able to successfully authenticate and login to Dropbox.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source