我正在作为服务提供者进行saml2.0身份验证。在对我的IP(身份提供者)进行身份验证后,我得到一个响应
像风箱
https://localhost: 4200/地图吗? SAMLResponse = pVRNj5swEP0riDvfkIDFIqXJJVK3u0pWe9hL5dhDQwUYecx2f35tKMmySmmrnvA8zbx5nnkmR9rUHTkAdqJFsPa7O % 2 fsrzekcrcpmxfkcoxfark56iksnjji0cu808glgw88gsrltnr26vm3texvyt6hoqztkh4hjp04qpgujsris % 2 bo46sv9saweoqpaqofksvife82rbah0wqegc fffr1em82goo1jote1hwgkm2ofzm06nteuxuzvk3k9zxrzwrgzkjuznr8j2yw9rjih3gdo2nczyyvzt83sb % 2 br7x0m62tkap4eplswtfckllg0cigdlu7j8t3zawmyn0lxbaqricbltvtd0igs62xn1joqqttv3kg3w5li4xuusqrr5dgplavenknjxl6dzvy2vxrwiu7tqp8hi9nf1amubpyr5v7o2dinwc % 2XLx % 2 f3 % 2 f2 % 2 bt % 2 bzxv % 2 f5vgst99b6yub % 2 b2yspln4c3rhtrz8d % 2 b4pyenobkkfznjrxw1vgj10d7italazqexir5 % 2 f9fvb26 % 2 brbsmuudrs6eark1rkguevade0 % 2 fwslkpc7pax05ywf7 % 2 fk0g3qubtlqj13jio19j7cyvhn4 % 2 fbaeltz3lnnx44zhu8o2porcghncoydidefnrwxed0icuqssghxqre2k4e3no22t3xoaslg0gcpm5gn4ux9 % 2 bcmkf9rpxuwx % 2 bjkn % 2 brwipjp4bvhn4ci93mmbk38szm % 2 f6axu8 % 3 d&签名= vY2pfmvhiy % 2 fhumh1gngn9wntoyu30sxjsu6jhsvlewovj6y0bzm73ei6ad % 2 fxrdouwfqtx2vjtpvrqzjfe9i9 % 2 fm0skyq90bgdhupk bqs0jvgtvbeo % 2 bmdrrm6kuxoc1sr1mrzav1ebrckwllock4ko39tc % 29 w4yppzwrp1oofqybbd % 2 be7q7xj6dcrlhiyli5s5tfgnk % 2 f5d9nj3zeizwpjn9ffkvfawpuqmydpbedibktl3jlmvih8b1mbolx % 2 fryqze8klx381bqzd7bg8nzhoevqrvdfrqeslnjzsuf5vcpskfdkhz7kqgazj66snqbvuxb9uvt480twlwjhwkraxy58q % 3 d % 3 d& SigAlg 3 = http % % 2 f % 2 fwww.w3.org % 2 f2001 % 2 f04 % 2 fxmldsig-more % 23 rsa-sha256祝辞祝辞
而不是xml响应我得到像上面和我的问题是如何处理它?
要查看响应,将下面的代码插入例如this.
pVRNj5swEP0riDvfkIDFIqXJJVK3u0pWe9hL5dhDQwUYecx2f35tKMmySmmrnvA8zbx5nnkmR9rUHTkAdqJFsPa7O%2fsrZEkcrCPmxFkcOXFaRk56iksnjJI0CU808GlgW88gsRLtnR26vm3tEXvYt6hoqzTkh4Hjp04QPgUJSRIS%2bO46SV9saweoqpaqofKsVIfE82rBaH0WqEgc%2br7X0M62tkaP4eplSwTFCklLG0CiGDlu7j8T3ZawMYn0LXbAqrICbltvTd0iGS62XN1JoQQTtV3kg3w5li4XUUSQRr5dGPlavenkNjXl6DZVy2vxrWIu7TqP8hI9nf1aMUBPyR5V7o2dinwc%2fFFR1eM82goO1jOte1hWgkM2OfZM06NteUXuzVk3k9ZxrzwrgzKJuZNR8J2Yw9rJIh3GdO2nCZyyVZT83SbXLx%2f3%2f2%2bT%2bzXv%2f5vgsT99B6YuB%2b2YspLN4C3rHtRZ8D%2b4pyEnoBKkfZNjRxW1vgj10D7ITalAzqexIr5%2f9fVB26%2brBsMuudrs6EarK1rkGueVAdE0%2fwSlkPC7Pax05yWF7%2fK0G3quBTLQj13Jio19J7CYVHN4%2fbAELTz3LnnX44zHu8o2pOrcGhNCoydiDeFNRwXED0icuqssGhXqRE2k4E3No22t3XOAslg0GCPM5Gn4UX9%2bCMkf9RPXUwX%2bJKn%2bRwipjP4bvHN4Ci93MMBk38szm%2f6axU8%3d
您将看到响应。
在编程上,使用库,例如this。