Hi anonymous user • Thank you for reaching out.
Yes, this can be done by using Custom Policy.
For this purpose, you need to create multiple folders with your custom HTML file that contains different T&Cs. E.g., you can create two folders - 1. India and 2. USA with unified.html as shown below:
- For India: https://moviesdiag132.blob.core.windows.net/b2c/india/unified.html contains JavaScript that redirects to the T&Cinida page. (view page source)
- For USA: https://moviesdiag132.blob.core.windows.net/b2c/usa/unified.html contains JavaScript that redirects to the T&Cusa page. (view page source)
Update the LoadUri under the api.signuporsignin
and api.localaccountsignup
content definitions as mentioned below:
<LoadUri>https://moviesdiag132.blob.core.windows.net/b2c/{OAUTH-KV:src}/unified.html</LoadUri>
Update the RP (signup/signin) file with content definition parameter <Parameter Name="src">{OAUTH-KV:src}</Parameter>
, as shown below:
<RelyingParty>
<DefaultUserJourney ReferenceId="SignUpOrSignIn" />
<UserJourneyBehaviors>
<ContentDefinitionParameters>
<Parameter Name="src">{OAUTH-KV:src}</Parameter>
</ContentDefinitionParameters>
<ScriptExecution>Allow</ScriptExecution>
</UserJourneyBehaviors>
<TechnicalProfile Id="PolicyProfile">
<DisplayName>PolicyProfile</DisplayName>
<Protocol Name="OpenIdConnect" />
<OutputClaims>
<...>
</OutputClaims>
<SubjectNamingInfo ClaimType="sub" />
</TechnicalProfile>
</RelyingParty>
Finally, copy the run now endpoint and append that with the src=india
or src=usa
parameter, you will get different T&Cs. You can test it out by clicking on the below link where I have specified src=india. Click on the sign up now link and then the terms of use link.
If you change src to usa
, you will get different T&Cs.
Read more: Configure dynamic custom page content URI
-----------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.