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
Greetings, right now I'm developing an IDP but I'm having the error shown in the title, probably is something obvious but I already struggled with it a long way.
First hand I'm sorry if I'm not writing this wit the guidelines of github forums I'm almost new in this plattforms.
As you can see I'm using the same certificate for sign and encrypt and the same private key such as (privateKey and encPrivateKey). In the already mentioned IDP, I have the next SP metadata.
In the SP apparently, I don't have issues, the SP sends the SAML Request correctly, but the problem is in the IDP when I'm creating the Response.
I'm using this template provided by the test/flow.ts in your repo, I made some changes.
createTemplateCallback(idp,sp,'post',user,requestInfo.extract,samllib,clientTemp), is the function for creating the response where clientTemp is an object to provide the response attributes it works well.
This flow works without the encryption, setting the SP configuration in the SP just as the react-samlify no encryption.
Mr @tngan I really appreciate your help, I checked the documentation and try to solve this based on your excellent web site https://samlify.js.org/ but I'm stuck.
Thanks.
The text was updated successfully, but these errors were encountered:
Hi khaight, yes, basically the problem was the SP metadata.
I was declaring the SP without a certificate and I was trying to encrypt the SAML Response, that logic lead to a problem because the IDP uses the SP certificate to encrypt the SAML Response.
Please make me know any more details about your error.
Greetings, right now I'm developing an IDP but I'm having the error shown in the title, probably is something obvious but I already struggled with it a long way.
First hand I'm sorry if I'm not writing this wit the guidelines of github forums I'm almost new in this plattforms.
In my IDP
I have the next metadata
and this configuration
As you can see I'm using the same certificate for
sign
andencrypt
and the same private key such as (privateKey and encPrivateKey). In the already mentioned IDP, I have the next SP metadata.With this configuration.
I generate the key and certificates with the commands proposed in the documentation.
In my SP
I Use the same IDP metadata that I already showed before and the same SP metadata. with the next configuration for IDP:
and the SP configuration as follows:
Leading to the error
In the SP apparently, I don't have issues, the SP sends the SAML Request correctly, but the problem is in the IDP when I'm creating the Response.
I'm using this template provided by the test/flow.ts in your repo, I made some changes.
The way I'm creating the response is as follows:
So the error when it tries to create the Response is Cannot read property 'replace' of null.
Where:
parseLoginRequest()
This flow works without the encryption, setting the SP configuration in the SP just as the react-samlify no encryption.
Mr @tngan I really appreciate your help, I checked the documentation and try to solve this based on your excellent web site https://samlify.js.org/ but I'm stuck.
Thanks.
The text was updated successfully, but these errors were encountered: