-
Notifications
You must be signed in to change notification settings - Fork 562
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1275 from kenjikikuchi/issue-1265-2
Customizable KeyCloak password error validator
- Loading branch information
Showing
8 changed files
with
268 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
pkg/provider/keycloak/example/authError-accountDisabled.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<body> | ||
<form id="xx-login" onsubmit="login.disabled = true; return true;" action="https://auth.xxx/auth/realms/xx/login-actions/authenticate?session_code=OKcPhDRTJdHbIgzuUl0wUGdKB2HaPuTjC_JpEyUa9GU&execution=0fe1a2f0-cf8a-4943-8de5-f6b1b84d6189&client_id=urn%3Abcdefg%3Awebservices&tab_id=Lj7xB_NeuSQ" method="post"> | ||
<div class="form-group"> | ||
<label for="username" class="pf-c-form__label pf-c-form__label-text">Username or E-Mail</label> | ||
<input tabindex="1" id="username" class="pf-c-form-control" name="username" value="xx" type="text" autofocus autocomplete="off" aria-invalid="true"/> | ||
<span id="input-error" class="pf-c-form__helper-text pf-m-error required kc-feedback-text" aria-live="polite"> | ||
Account is disabled, contact your administrator. | ||
</span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="pf-c-form__label pf-c-form__label-text">Password</label> | ||
<input tabindex="2" id="password" class="pf-c-form-control" name="password" type="password" autocomplete="off" aria-invalid="true"/> | ||
</div> | ||
<div id="kc-form-buttons" class="form-group"> | ||
<input type="hidden" id="id-hidden-input" name="credentialId" /> | ||
<input tabindex="4" class="pf-c-button pf-m-primary pf-m-block btn-lg" name="login" id="kc-login" type="submit" value="Login"/> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
22 changes: 22 additions & 0 deletions
22
pkg/provider/keycloak/example/authError-accountDisabled_ja.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<body> | ||
<form id="xx-login" onsubmit="login.disabled = true; return true;" action="https://auth.xxx/auth/realms/xx/login-actions/authenticate?session_code=OKcPhDRTJdHbIgzuUl0wUGdKB2HaPuTjC_JpEyUa9GU&execution=0fe1a2f0-cf8a-4943-8de5-f6b1b84d6189&client_id=urn%3Abcdefg%3Awebservices&tab_id=Lj7xB_NeuSQ" method="post"> | ||
<div class="form-group"> | ||
<label for="username" class="pf-c-form__label pf-c-form__label-text">ユーザー名 または メールアドレス</label> | ||
<input tabindex="1" id="username" class="pf-c-form-control" name="username" value="xx" type="text" autofocus autocomplete="off" aria-invalid="true"/> | ||
<span class="kc-feedback-text" aria-live="polite"> | ||
無効なユーザー名またはパスワードです。 | ||
</span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="pf-c-form__label pf-c-form__label-text">パスワード</label> | ||
<input tabindex="2" id="password" class="pf-c-form-control" name="password" type="password" autocomplete="off" aria-invalid="true"/> | ||
</div> | ||
<div id="kc-form-buttons" class="form-group"> | ||
<input type="hidden" id="id-hidden-input" name="credentialId" /> | ||
<input tabindex="4" class="pf-c-button pf-m-primary pf-m-block btn-lg" name="login" id="kc-login" type="submit" value="ログイン"/> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
22 changes: 22 additions & 0 deletions
22
pkg/provider/keycloak/example/authError-invalidPassword.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<body> | ||
<form id="xx-login" onsubmit="login.disabled = true; return true;" action="https://auth.xxx/auth/realms/xx/login-actions/authenticate?session_code=OKcPhDRTJdHbIgzuUl0wUGdKB2HaPuTjC_JpEyUa9GU&execution=0fe1a2f0-cf8a-4943-8de5-f6b1b84d6189&client_id=urn%3Abcdefg%3Awebservices&tab_id=Lj7xB_NeuSQ" method="post"> | ||
<div class="form-group"> | ||
<label for="username" class="pf-c-form__label pf-c-form__label-text">Username or E-Mail</label> | ||
<input tabindex="1" id="username" class="pf-c-form-control" name="username" value="xx" type="text" autofocus autocomplete="off" aria-invalid="true"/> | ||
<span id="input-error" class="pf-c-form__helper-text pf-m-error required kc-feedback-text" aria-live="polite"> | ||
Invalid username or password. | ||
</span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="pf-c-form__label pf-c-form__label-text">Password</label> | ||
<input tabindex="2" id="password" class="pf-c-form-control" name="password" type="password" autocomplete="off" aria-invalid="true"/> | ||
</div> | ||
<div id="kc-form-buttons" class="form-group"> | ||
<input type="hidden" id="id-hidden-input" name="credentialId" /> | ||
<input tabindex="4" class="pf-c-button pf-m-primary pf-m-block btn-lg" name="login" id="kc-login" type="submit" value="Login"/> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
22 changes: 22 additions & 0 deletions
22
pkg/provider/keycloak/example/authError-invalidPassword_ja.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<head> | ||
<body> | ||
<form id="xx-login" onsubmit="login.disabled = true; return true;" action="https://auth.xxx/auth/realms/xx/login-actions/authenticate?session_code=OKcPhDRTJdHbIgzuUl0wUGdKB2HaPuTjC_JpEyUa9GU&execution=0fe1a2f0-cf8a-4943-8de5-f6b1b84d6189&client_id=urn%3Abcdefg%3Awebservices&tab_id=Lj7xB_NeuSQ" method="post"> | ||
<div class="form-group"> | ||
<label for="username" class="pf-c-form__label pf-c-form__label-text">ユーザー名 または メールアドレス</label> | ||
<input tabindex="1" id="username" class="pf-c-form-control" name="username" value="xx" type="text" autofocus autocomplete="off" aria-invalid="true"/> | ||
<span class="kc-feedback-text" aria-live="polite"> | ||
無効なユーザー名またはパスワードです。 | ||
</span> | ||
</div> | ||
<div class="form-group"> | ||
<label for="password" class="pf-c-form__label pf-c-form__label-text">パスワード</label> | ||
<input tabindex="2" id="password" class="pf-c-form-control" name="password" type="password" autocomplete="off" aria-invalid="true"/> | ||
</div> | ||
<div id="kc-form-buttons" class="form-group"> | ||
<input type="hidden" id="id-hidden-input" name="credentialId" /> | ||
<input tabindex="4" class="pf-c-button pf-m-primary pf-m-block btn-lg" name="login" id="kc-login" type="submit" value="ログイン"/> | ||
</div> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters