using Azure AD B2C SAML custom policies, How to add redirectino to a default website after users successfully authenticate so the new site will have access to all the SAML response attributes

anas amer 0 Reputation points
2024-04-21T12:30:08+00:00

the SP here is Splunk

we have succssfully implemented SAML integration with Azure AD B2C using custom policies

We followed MS documentations to add the redirect url on the registred APP but it is not working

I added an extra line to the SigninSignup custom policy like below


        <OutputClaim ClaimTypeReferenceId="redirect_uri" DefaultValue="https://website.com" AlwaysUseDefaultValue="true"/>

I added the below ClaimType to the trustframeworkbase custom policy

      <ClaimType Id="redirect_uri">
        <DisplayName>Redirect URI</DisplayName>
        <DataType>string</DataType>
        <DefaultPartnerClaimTypes>
        <Protocol Name="OAuth2" PartnerClaimType="redirect_uri" />
        <Protocol Name="OpenIdConnect" PartnerClaimType="redirect_uri" />
        </DefaultPartnerClaimTypes>
        <UserHelpText>URL to redirect to after authentication</UserHelpText>
      </ClaimType>

I also added a below ClaimType to the TrustFrameworkextension

 <ClaimsProvider>
     <DisplayName>Set Redirect URI Provider</DisplayName>
     <TechnicalProfiles>
      <TechnicalProfile Id="SetRedirectUriTechnicalProfile">
       <DisplayName>Set Redirect URI</DisplayName>
       <Protocol Name="Proprietary" Handler="Web.TPEngine.Providers.ClaimsTransformationProtocolProvider, Web.TPEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"/>
       <OutputClaims>
        <OutputClaim ClaimTypeReferenceId="redirect_uri" DefaultValue="https://website.com" AlwaysUseDefaultValue="true"/>
       </OutputClaims>
      </TechnicalProfile>
     </TechnicalProfiles>
    </ClaimsProvider>

With all the above the user is still not being redirected to the website.com I am setting in the redirecting url

Any help is appreciated as I exhuasted the options to go with Microsoft support

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
{count} votes

1 answer

Sort by: Most helpful
  1. anas amer 0 Reputation points
    2024-04-21T12:45:54.2833333+00:00

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.