mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-06-10 03:07:33 +08:00
init sso credential
This commit is contained in:
@@ -49,6 +49,7 @@ public class AuthorizeCredentialEndpoint extends AuthorizeBaseEndpoint{
|
||||
modelAndView.addObject("setpassword", true);
|
||||
modelAndView.addObject("uid", WebContext.getUserInfo().getId());
|
||||
modelAndView.addObject("appId", appId);
|
||||
modelAndView.addObject("appName",getApp(appId).getName());
|
||||
modelAndView.addObject("redirect_uri", redirect_uri);
|
||||
return modelAndView;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ public class FormBasedAuthorizeEndpoint extends AuthorizeBaseEndpoint{
|
||||
|
||||
_logger.debug("Accounts "+appUser);
|
||||
if(appUser == null){
|
||||
return generateInitCredentialModelAndView(id,"/authorize/formbased/"+id);
|
||||
return generateInitCredentialModelAndView(id,"/authz/formbased/"+id);
|
||||
|
||||
}else{
|
||||
formBasedDetails.setAppUser(appUser);
|
||||
|
||||
@@ -2,19 +2,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<#include "authorize_common.ftl">
|
||||
<title>SSO Credential Init</title>
|
||||
<#include "../layout/common.cssjs.ftl">
|
||||
<title>Single Sign-On Credential Initialize</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<form id="credentialsubmit" name="credentialsubmit" action="<s:Base/>/authz/credential" method="post">
|
||||
<table style="margin: auto;width:50%">
|
||||
<form id="credentialsubmit" name="credentialsubmit" action="<@base/>/authz/credential" method="post">
|
||||
<table style="margin: auto;width:50%" class="table table-bordered">
|
||||
<tr>
|
||||
<td><@locale code="userinfo.appaccouts.relatedUsername" /></td>
|
||||
<td><input type="text" id="identity_username" name="identity_username" value="" /></td>
|
||||
<td><@locale code="account.appName" /></td>
|
||||
<td>${appName}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><@locale code="account.relatedUsername" /></td>
|
||||
<td><input required="" class="form-control" type='text' id="identity_username" name="identity_username" value="" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><@locale code="userinfo.appaccouts.relatedPassword" /></td>
|
||||
<td><input type="password" id="identity_password" name="identity_password" value="" /></td>
|
||||
<td><@locale code="account.relatedPassword" /></td>
|
||||
<td><input required="" class="form-control" type="password" id="identity_password" name="identity_password" value="" /></td>
|
||||
</tr>
|
||||
<tr style="display:none">
|
||||
<td>uid</td>
|
||||
@@ -29,7 +34,7 @@
|
||||
<td><input type="text" id="redirect_uri" name="redirect_uri" value="${redirect_uri}" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input class="button" type="submit" style="width: 100px" id="credentialsubmitbutton"value="<s:Locale code="button.text.continue" />"/></td>
|
||||
<td colspan="2"><input class="button btn btn-primary mr-3" type="submit" style="width: 200px" id="credentialsubmitbutton"value="<@locale code="button.text.save" />"/></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user