Use javascript with the custom view policies in Az

2019-06-04 01:32发布

Is there any possibility or trick to enable the use of our javascript for the sign-up policy when using custom views?

The error messages for each field appear from too many events (for the email field the error message is shown when typing the text...) and it's quite disturbing for the end-user...

Other point,the type for the email input field is type="text", no problem for a webapp but if we use it in a mobile application it doesn't block the autocompletion so the input for the user is quite difficult...

Thx

1条回答
Fickle 薄情
2楼-- · 2019-06-04 02:05

Updated on 2018-11

At this point, Azure AD B2C does not support custom javascript on any of it's pages.

This is currently under development in preview and you can express your interest and track it's progress by voting for the UserVoice entry in the Azure AD B2C UserVoice forum:

https://feedback.azure.com/forums/169401-azure-active-directory/suggestions/15493536-add-support-for-javascript-inside-the-custom-ui-br

From the Azure AD B2C Javascript sample documentation you can achieve this by adding the <ScriptExecution> element to your custom policies as follows:

<RelyingParty>
  <DefaultUserJourney ReferenceId="B2CSignUpOrSignInWithPassword" />
  <UserJourneyBehaviors>
    <ScriptExecution>Allow</ScriptExecution>
  </UserJourneyBehaviors>
  ...
</RelyingParty>
查看更多
登录 后发表回答