Passing URL parameters from Azure ACS to my custom Identity Provider?

后端 未结 1 1707
悲&欢浪女
悲&欢浪女 2021-01-28 01:58

We\'re developing a custom identity Provider(STS) to authenticate our applications. In this project we\'re using the Azure Acesses Control Services 2.0 and our Identity provider

相关标签:
1条回答
  • 2021-01-28 02:39

    The wctx parameter should not be consumed by your identity provider. The intent of this parameter is for your RP to store any data it needs, which will be returned to it along with the token when ACS sends a WS-Federation sign-in response. If you want to send a message to your identity provider, the easiest way to do so is to host your own HRD page, as in the "Option 2: Host a Custom Login Page" section of this MSDN page. Download the linked sample in your namespace as a starting point and then modify the code below:

        // Sets a cookie to remember the chosen identity provider and navigates to it.
        function IdentityProviderButtonClicked() {
            SetCookie(this.getAttribute("name"));
    
            // Add any extra query parameters you want before redirecting.
            window.location = this.getAttribute("id") + "&extraParameter=value";
            return false;
        }
    

    Any extra parameters you want to pass can be added in this way and will make it to your identity provider.

    0 讨论(0)
提交回复
热议问题