mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-19 16:55:16 +01:00
Merge pull request #7267 from jwangyangls/oidc_step2_onboard
Add links to OIDC login
This commit is contained in:
commit
cf391e74ad
@ -1,42 +1,53 @@
|
|||||||
<div class="login-wrapper" [ngStyle]="{'background-image': customLoginBgImg? 'url(static/images/' + customLoginBgImg + ')': ''}">
|
<div class="login-wrapper"
|
||||||
|
[ngStyle]="{'background-image': customLoginBgImg? 'url(static/images/' + customLoginBgImg + ')': ''}">
|
||||||
<form #signInForm="ngForm" class="login">
|
<form #signInForm="ngForm" class="login">
|
||||||
<label class="title"> {{customAppTitle? customAppTitle:(appTitle | translate)}}
|
<label class="title"> {{customAppTitle? customAppTitle:(appTitle | translate)}}
|
||||||
</label>
|
</label>
|
||||||
|
<a href="/c/oidc/login" class="login-oidc">
|
||||||
|
<button type="button" class="btn btn-primary btn-block">
|
||||||
|
<span>{{'BUTTON.LOG_IN_OIDC' | translate }}</span>
|
||||||
|
</button>
|
||||||
|
</a>
|
||||||
<div class="login-group">
|
<div class="login-group">
|
||||||
<label for="username" aria-haspopup="true" role="tooltip" class="tooltip tooltip-validation tooltip-md tooltip-top-left">
|
<label for="username" aria-haspopup="true" role="tooltip"
|
||||||
<input class="username" type="text" required
|
class="tooltip tooltip-validation tooltip-md tooltip-top-left">
|
||||||
[(ngModel)]="signInCredential.principal"
|
<input class="username" type="text" required [(ngModel)]="signInCredential.principal"
|
||||||
name="login_username" id="login_username" placeholder='{{"PLACEHOLDER.SIGN_IN_NAME" | translate}}'
|
name="login_username" id="login_username" placeholder='{{"PLACEHOLDER.SIGN_IN_NAME" | translate}}'
|
||||||
#userNameInput='ngModel'>
|
#userNameInput='ngModel'>
|
||||||
<span class="tooltip-content">
|
<span class="tooltip-content">
|
||||||
{{ 'TOOLTIP.SIGN_IN_USERNAME' | translate }}
|
{{ 'TOOLTIP.SIGN_IN_USERNAME' | translate }}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<label for="username" aria-haspopup="true" role="tpopular-repo-wrapperooltip" class="tooltip tooltip-validation tooltip-md tooltip-top-left">
|
<label for="username" aria-haspopup="true" role="tpopular-repo-wrapperooltip"
|
||||||
<input class="password" type="password" required
|
class="tooltip tooltip-validation tooltip-md tooltip-top-left">
|
||||||
[(ngModel)]="signInCredential.password"
|
<input class="password" type="password" required [(ngModel)]="signInCredential.password"
|
||||||
name="login_password" id="login_password" placeholder='{{"PLACEHOLDER.SIGN_IN_PWD" | translate}}'
|
name="login_password" id="login_password" placeholder='{{"PLACEHOLDER.SIGN_IN_PWD" | translate}}'
|
||||||
#passwordInput="ngModel">
|
#passwordInput="ngModel">
|
||||||
<span class="tooltip-content">
|
<span class="tooltip-content">
|
||||||
{{ 'TOOLTIP.SIGN_IN_PWD' | translate }}
|
{{ 'TOOLTIP.SIGN_IN_PWD' | translate }}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<input type="checkbox" id="rememberme" #rememberMeBox (click)="clickRememberMe($event)" [checked]="rememberMe">
|
<input type="checkbox" id="rememberme" #rememberMeBox (click)="clickRememberMe($event)"
|
||||||
|
[checked]="rememberMe">
|
||||||
<label for="rememberme">{{ 'SIGN_IN.REMEMBER' | translate }}</label>
|
<label for="rememberme">{{ 'SIGN_IN.REMEMBER' | translate }}</label>
|
||||||
<a *ngIf="showForgetPwd" href="javascript:void(0)" class="forgot-password-link" (click)="forgotPassword()">{{'SIGN_IN.FORGOT_PWD' | translate}}</a>
|
<a *ngIf="showForgetPwd" href="javascript:void(0)" class="forgot-password-link"
|
||||||
|
(click)="forgotPassword()">{{'SIGN_IN.FORGOT_PWD' | translate}}</a>
|
||||||
</div>
|
</div>
|
||||||
<div [class.visibility-hidden]="!isError" class="error active">
|
<div [class.visibility-hidden]="!isError" class="error active">
|
||||||
{{ 'SIGN_IN.INVALID_MSG' | translate }}
|
{{ 'SIGN_IN.INVALID_MSG' | translate }}
|
||||||
</div>
|
</div>
|
||||||
<button [disabled]="isOnGoing || !isValid" type="submit" class="btn btn-primary" (click)="signIn()">{{ 'BUTTON.LOG_IN' | translate }}</button>
|
<button [disabled]="isOnGoing || !isValid" type="submit" class="btn btn-primary"
|
||||||
<a href="javascript:void(0)" class="signup" (click)="signUp()" *ngIf="selfSignUp">{{ 'BUTTON.SIGN_UP_LINK' | translate }}</a>
|
(click)="signIn()">{{ 'BUTTON.LOG_IN' | translate }}</button>
|
||||||
|
<a href="javascript:void(0)" class="signup" (click)="signUp()"
|
||||||
|
*ngIf="selfSignUp">{{ 'BUTTON.SIGN_UP_LINK' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<a href="https://github.com/goharbor/harbor" target="_blank" class="more-info-link">{{ 'BUTTON.MORE_INFO' | translate }}</a>
|
<a href="https://github.com/goharbor/harbor" target="_blank"
|
||||||
|
class="more-info-link">{{ 'BUTTON.MORE_INFO' | translate }}</a>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
<div *ngIf="appConfig.show_popular_repo" id="pop_repo" class="popular-repo-wrapper" >
|
<div *ngIf="appConfig.show_popular_repo" id="pop_repo" class="popular-repo-wrapper">
|
||||||
<top-repo class="repo-container"></top-repo>
|
<top-repo class="repo-container"></top-repo>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -59,4 +59,7 @@
|
|||||||
.login {
|
.login {
|
||||||
background:transparent;
|
background:transparent;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
margin-bottom: 50px;
|
||||||
}
|
}
|
@ -21,6 +21,7 @@
|
|||||||
"OK": "OK",
|
"OK": "OK",
|
||||||
"DELETE": "DELETE",
|
"DELETE": "DELETE",
|
||||||
"LOG_IN": "LOG IN",
|
"LOG_IN": "LOG IN",
|
||||||
|
"LOG_IN_OIDC": "Login via OIDC provider",
|
||||||
"SIGN_UP_LINK": "Sign up for an account",
|
"SIGN_UP_LINK": "Sign up for an account",
|
||||||
"SIGN_UP": "SIGN UP",
|
"SIGN_UP": "SIGN UP",
|
||||||
"CONFIRM": "CONFIRM",
|
"CONFIRM": "CONFIRM",
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"OK": "OK",
|
"OK": "OK",
|
||||||
"DELETE": "ELIMINAR",
|
"DELETE": "ELIMINAR",
|
||||||
"LOG_IN": "IDENTIFICARSE",
|
"LOG_IN": "IDENTIFICARSE",
|
||||||
|
"LOG_IN_OIDC": "Login Via OIDC proveedor",
|
||||||
"SIGN_UP_LINK": "Registrar una cuenta",
|
"SIGN_UP_LINK": "Registrar una cuenta",
|
||||||
"SIGN_UP": "REGISTRARSE",
|
"SIGN_UP": "REGISTRARSE",
|
||||||
"CONFIRM": "CONFIRMAR",
|
"CONFIRM": "CONFIRMAR",
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"OK": "OK",
|
"OK": "OK",
|
||||||
"DELETE": "SUPPRIMER",
|
"DELETE": "SUPPRIMER",
|
||||||
"LOG_IN": "S'IDENTIFIER",
|
"LOG_IN": "S'IDENTIFIER",
|
||||||
|
"LOG_IN_OIDC": "Connexion via OIDC fournisseur",
|
||||||
"SIGN_UP_LINK": "Ouvrir un compte",
|
"SIGN_UP_LINK": "Ouvrir un compte",
|
||||||
"SIGN_UP": "S'INSCRIRE",
|
"SIGN_UP": "S'INSCRIRE",
|
||||||
"CONFIRM": "CONFIRMER",
|
"CONFIRM": "CONFIRMER",
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"OK": "OK",
|
"OK": "OK",
|
||||||
"DELETE": "DELETAR",
|
"DELETE": "DELETAR",
|
||||||
"LOG_IN": "LOG IN",
|
"LOG_IN": "LOG IN",
|
||||||
|
"LOG_IN_OIDC": "Login via OIDC provedor",
|
||||||
"SIGN_UP_LINK": "Registre-se para uma conta",
|
"SIGN_UP_LINK": "Registre-se para uma conta",
|
||||||
"SIGN_UP": "REGISTRE-Se",
|
"SIGN_UP": "REGISTRE-Se",
|
||||||
"CONFIRM": "CONFIRMAR",
|
"CONFIRM": "CONFIRMAR",
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
"OK": "确定",
|
"OK": "确定",
|
||||||
"DELETE": "删除",
|
"DELETE": "删除",
|
||||||
"LOG_IN": "登录",
|
"LOG_IN": "登录",
|
||||||
|
"LOG_IN_OIDC": "通过OIDC提供商登录",
|
||||||
"SIGN_UP_LINK": "注册账号",
|
"SIGN_UP_LINK": "注册账号",
|
||||||
"SIGN_UP": "注册",
|
"SIGN_UP": "注册",
|
||||||
"CONFIRM": "确定",
|
"CONFIRM": "确定",
|
||||||
|
Loading…
Reference in New Issue
Block a user