最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

itfoxtec identity saml2 - Change ResposeCode on Saml2RedirectBinding.Bind() - Stack Overflow

programmeradmin0浏览0评论

I'm working with an IdP that does not support CORS and trying to do a redirect binding. Their solution was to catch the response from the server and open the redirect in a new window. The browser keeps redirecting it for me. Is there a way to apply a custom response code in this sample:

Login method in the Auth Controller:

[Route("Login")]
public IActionResult Login(string returnUrl = null)
{
    var binding = new Saml2RedirectBinding();
    binding.SetRelayStateQuery(new Dictionary<string, string> 
        { { relayStateReturnUrl, returnUrl ?? Url.Content("~/") } });

   return binding.Bind(new Saml2AuthnRequest(config)).ToActionResult();

}

发布评论

评论列表(0)

  1. 暂无评论