“AssertionConsumerService giving ‘Not HTTP POST Method'”

huangapple go评论90阅读模式
英文:

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

huangapple
  • 本文由 发表于 2023年3月9日 22:48:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/75686199.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定