You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
In our project, we have 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 generate a SAML response to allow a 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 requirement.
The first challenge I was facing is to add AudienceRestriction in the Conditions block as below:-
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.
Even after manually adding the above block 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 no idea why I am getting Signature Invalid error. Please let me know if you have any suggestions for me.
I also have to add AuthnStatement below the Conditions block as below:-
In our project, we have 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 generate a SAML response to allow a 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 requirement.
I have tried to add it like below in the code, but it seems Conditions is not defined in authnResponse object.
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.
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
The text was updated successfully, but these errors were encountered: