Merge pull request #45 from vrockai/KEYCLOAK-74_2

KEYCLOAK-74
This commit is contained in:
Bill Burke 2013-09-27 13:02:26 -07:00
commit 24b092bf6b
8 changed files with 108 additions and 6 deletions

View file

@ -1 +1 @@
template not found <#include "./theme/" + template.theme + "/error.ftl">

View file

@ -0,0 +1 @@
<#include "./theme/" + template.theme + "/login-oauth-grant.ftl">

View file

@ -294,6 +294,48 @@ a.zocial:before {
.rcue-login-register.reset .feedback { .rcue-login-register.reset .feedback {
left: 35.7em; left: 35.7em;
} }
.rcue-login-register.oauth .form-actions {
margin-bottom: 0;
margin-top: 2em;
}
.rcue-login-register .background-area .content-area {
width: 50em;
}
.rcue-login-register .background-area .content-area ul {
border-bottom: 1px solid #34393C;
margin-bottom: 2em;
}
.rcue-login-register .background-area .content-area ul li {
border-top: 1px solid #34393C;
padding: 2em;
}
.rcue-login-register .background-area .content-area ul li span:first-child {
font-size: 1.3em;
}
.rcue-login-register .background-area .content-area ul li span.icon-info {
float: right;
margin-top: 0.5em;
}
.rcue-login-register .background-area .content-area p.terms {
color: #999999;
font-size: 1.1em;
line-height: 1.3em;
}
.rcue-login-register .background-area p.instruction.instruction.second {
color: #999999;
}
.rcue-login-register .background-area p.instruction + .instruction.second {
margin-top: -1.23077em;
}
.rcue-login-register .background-area a.link-right {
float: right;
font-size: 1.3em;
}
.rcue-login-register.reset .form-area { .rcue-login-register.reset .form-area {
background-image: none; background-image: none;
} }

View file

@ -0,0 +1,24 @@
<#-- TODO: Only a placeholder, implementation needed -->
<#import "template-login-action.ftl" as layout>
<@layout.registrationLayout bodyClass="reset"; section>
<#if section = "title">
We're sorry...
<#elseif section = "header">
We're <strong>sorry</strong> ...
<#elseif section = "form">
<p class="instruction">Something happened and we could not process your request.</p>
<p class="instruction second">Please make sure the URL you entered is correct.</p>
<a href="saas-login.html" class="link-right">Go to the homepage »</a>
<#elseif section = "info" >
<div id="info">
</div>
</#if>
</@layout.registrationLayout>

View file

@ -0,0 +1,36 @@
<#-- TODO: Only a placeholder, implementation needed -->
<#import "template-login-action.ftl" as layout>
<@layout.registrationLayout bodyClass="reset oauth"; section>
<#if section = "title">
OAuth Grant
<#elseif section = "header">
<strong>Keycloak</strong> Central Login
<#elseif section = "form">
<div class="content-area">
<p class="instruction">This application requests access to:</p>
<ul>
<li>
<span>View basic information about your account</span>
</li>
<li>
<span>View your email address</span>
</li>
</ul>
<p class="terms">Keycloak Central Login and Google will use this information in accordance with their respective terms of service and privacy policies.</p>
<div class="form-actions">
<button class="primary" type="submit">Accept</button>
<button type="submit">Cancel</button>
</div>
</div>
<#elseif section = "info" >
<div id="info">
</div>
</#if>
</@layout.registrationLayout>

View file

@ -24,6 +24,7 @@
</#list> </#list>
<div class="aside-btn"> <div class="aside-btn">
<p>Forgot <a href="${url.passwordResetUrl}">Password</a>?</p>
</div> </div>
<input class="btn-primary" type="submit" value="Log In"/> <input class="btn-primary" type="submit" value="Log In"/>
@ -36,8 +37,6 @@
<#if realm.registrationAllowed> <#if realm.registrationAllowed>
<p>${rb.getString('noAccount')} <a href="${url.registrationUrl}">${rb.getString('register')}</a>.</p> <p>${rb.getString('noAccount')} <a href="${url.registrationUrl}">${rb.getString('register')}</a>.</p>
</#if> </#if>
<a href="${url.passwordResetUrl}">Reset password</a>
</div> </div>
</#if> </#if>

View file

@ -1,7 +1,7 @@
logIn=Log in logIn=Log in
logInTo=Log in to logInTo=Log in to
logInWith=Log in with logInWith=Log in with
noAccount=No account? noAccount=New user?
register=Register register=Register
registerWith=Register with registerWith=Register with
allRequired=All fields are required allRequired=All fields are required
@ -18,7 +18,7 @@ password=Password
passwordConfirm=Confirm Password passwordConfirm=Confirm Password
passwordNew=New Password passwordNew=New Password
authenticatorCode=Authenticator Code authenticatorCode=One-time-password
clientCertificate=Client Certificate clientCertificate=Client Certificate
invalidUser=Invalid username or password invalidUser=Invalid username or password

View file

@ -47,7 +47,7 @@ public class LoginPage extends Page {
@FindBy(linkText = "Register") @FindBy(linkText = "Register")
private WebElement registerLink; private WebElement registerLink;
@FindBy(linkText = "Reset password") @FindBy(linkText = "Password")
private WebElement resetPasswordLink; private WebElement resetPasswordLink;
@FindBy(id = "loginError") @FindBy(id = "loginError")