英文:
AssertionConsumerService giving "Not HTTP POST Method"
问题
I've implemented the MitId login with your nuget package. It seems to work fine until we get redirected back to the AssertionConsumerService endpoint. There I get "Not HTTP POST Method" but with your code repo I do not... there everything works fine..
Now I'm wondering whether it might be an issue with the metadata Service Provider XML file, or the wrong issuer in appsettings.js or something else that is configurable... because the code is pretty much identical to your code examples....
Do you have any idea what the problem might be? Does the Issuer need to be registered in the MitId administration portal somewhere? I do not know how the Issuer is supposed to be configured.
I followed your step by step guide on how to implement and used you code example repos to test with and also to copy and tweak the code from...
英文:
I've implemented the MitId login with your nuget package. It seems to work fine until we get redirected back to the AssertionConsumerService endpoint. There I get "Not HTTP POST Method" but with your code repo I do not... there everything works fine..
Now I'm wondering whether it might be an issue with the metadata Service Provider XML file, or the wrong issuer in appsettings.js or something else that is configurable... because the code is pretty much identical to your code examples....
Do you have any idea what the problem might be? Does the Issuer need to be registered in the MitId administration portal somewhere? I do not know how the Issuer is supposed to be configured.
I followed your step by step guide on how to implement and used you code example repos to test with and also to copy and tweak the code from...
答案1
得分: 1
NemLog-in 在调用 AssertionConsumerService 终端时应使用 POST 绑定。
这在 SP 元数据中配置(您的应用程序的元数据):
https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/blob/master/test/TestWebAppCoreNemLogin3Sp/Controllers/MetadataController.cs#L48
SP 元数据已上传至 NemLog-in。SP 元数据包括发行者、证书和终结点。
您的应用程序中的 AssertionConsumerService 终端已设置为接受 POST 消息:
https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/blob/master/test/TestWebAppCoreNemLogin3Sp/Controllers/AuthController.cs#L57
英文:
NemLog-in should use POST binding when calling back to the AssertionConsumerService endpoint.
It is configured in the SP metadata (your applications metadata):
https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/blob/master/test/TestWebAppCoreNemLogin3Sp/Controllers/MetadataController.cs#L48
The SP metadata is uploaded to NemLog-in. The SP metadata include issuer, certificate(s) and endpoints.
And the AssertionConsumerService endpoint in you application is set to accept POST messages:
https://github.com/ITfoxtec/ITfoxtec.Identity.Saml2/blob/master/test/TestWebAppCoreNemLogin3Sp/Controllers/AuthController.cs#L57
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论