Skip to content

Commit

Permalink
Fix JIT Provisioning for username, password and consent option
Browse files Browse the repository at this point in the history
  • Loading branch information
dasuni-30 committed Dec 11, 2023
1 parent ba7e375 commit 8434609
Showing 1 changed file with 82 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,87 @@
<% } %>
</layout:component>
<layout:component componentName="MainSection" >
<% if(skipSignUpEnableCheck) {%>
<div class="ui segment">
<h3 class="ui header">
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Initiate.sign.up")%>
</h3>

<div class="ui negative message" id="error-msg" hidden="hidden"></div>
<% if (error) { %>
<div class="ui negative message" id="server-error-msg">
<%= IdentityManagementEndpointUtil.i18nBase64(recoveryResourceBundle, errorMsg) %>
</div>
<% } %>
<%-- validation --%>

<div class="ui divider hidden"></div>
<div class="segment-form">
<form class="ui large form" action="signup.do" method="post" id="register">

<div class="field">
<label for="username">
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
"Enter.your.username.here")%>
</label>
<input id="username" name="username" type="text" required
<% if(skipSignUpEnableCheck) {%> value="<%=Encode.forHtmlAttribute(username)%>" <%}%>>
</div>

<% if (isSaaSApp) { %>
<p class="ui tiny compact info message">
<i class="icon info circle"></i>
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
"If.you.specify.tenant.domain.you.registered.under.super.tenant")%>
</p>
<% } %>

<input id="callback" name="callback" type="hidden" value="<%=callback%>"
class="form-control" required>

<% Map<String, String[]> requestMap = request.getParameterMap();
for (Map.Entry<String, String[]> entry : requestMap.entrySet()) {
String key = Encode.forHtmlAttribute(entry.getKey());
String value = Encode.forHtmlAttribute(entry.getValue()[0]);
if (StringUtils.equalsIgnoreCase("reCaptcha", key)) {
continue;
} %>
<div class="field">
<input id="<%= key%>" name="<%= key%>" type="hidden"
value="<%=value%>" class="form-control">
</div>
<% } %>
<%
if (reCaptchaEnabled) {
String reCaptchaKey = CaptchaUtil.reCaptchaSiteKey();
%>
<div class="field">
<div class="g-recaptcha"
data-size="invisible"
data-callback="onCompleted"
data-action="register"
data-sitekey="<%=Encode.forHtmlContent(reCaptchaKey)%>"
>
</div>
</div>
<%
}
%>
<div class="ui divider hidden"></div>

<div class="align-right buttons">
<a href="javascript:goBack()" class="ui button secondary fluid large button mb-2">
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle, "Cancel")%>
</a>
<button id="registrationSubmit" class="ui primary fluid large button" type="submit">
<%=IdentityManagementEndpointUtil.i18n(recoveryResourceBundle,
"Proceed.to.self.register")%>
</button>
</div>
</form>
</div>
</div>
<% } else {%>
<div class="ui segment">
<h3 class="ui header" data-testid="self-registration-username-request-page-header">
<%=i18n(recoveryResourceBundle, customText, "sign.up.heading")%>
Expand Down Expand Up @@ -1202,6 +1283,7 @@
</form>
</div>
</div>
<% }%>
</layout:component>
<layout:component componentName="ProductFooter">
<%-- product-footer --%>
Expand Down

0 comments on commit 8434609

Please sign in to comment.