Fixes #306 - Adds support for Dex as an OAuth external login provider - Adds support for OIDC in general - Extract out external logins on the JS side into a service - Add a feature flag for disabling direct login - Add support for directing to the single external login service - Does *not* yet support the config in the superuser tool
35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
<div class="signin-form-element" style="position: relative">
|
|
<span class="cor-loader" ng-show="signingIn"></span>
|
|
|
|
<form class="form-signin" ng-submit="signin();" ng-show="!signingIn">
|
|
<div quay-show="Features.DIRECT_LOGIN">
|
|
<input type="text" class="form-control input-lg" name="username"
|
|
placeholder="Username or E-mail Address" ng-model="user.username" autofocus>
|
|
<input type="password" class="form-control input-lg" name="password"
|
|
placeholder="Password" ng-model="user.password">
|
|
</div>
|
|
|
|
<div class="co-alert co-alert-warning" ng-show="tryAgainSoon > 0">
|
|
Too many attempts have been made to login. Please try again in {{ tryAgainSoon }} second<span ng-if="tryAgainSoon != 1">s</span>.
|
|
</div>
|
|
|
|
<span ng-show="tryAgainSoon == 0">
|
|
<button class="btn btn-lg btn-primary btn-block" type="submit" quay-show="Features.DIRECT_LOGIN">Sign In</button>
|
|
|
|
<span class="social-alternate" quay-show="EXTERNAL_LOGINS.length && Features.DIRECT_LOGIN">
|
|
<i class="fa fa-circle"></i>
|
|
<span class="inner-text">OR</span>
|
|
</span>
|
|
|
|
<div class="external-login-button" provider="{{ provider.id }}" redirect-url="redirectUrl"
|
|
sign-in-started="markStarted()" ng-repeat="provider in EXTERNAL_LOGINS"></div>
|
|
</span>
|
|
</form>
|
|
|
|
<div class="co-alert co-alert-danger" ng-show="invalidCredentials">
|
|
{{ invalidCredentialsMessage || 'Invalid username or password.' }}
|
|
</div>
|
|
<div class="co-alert co-alert-danger" ng-show="needsEmailVerification">
|
|
You must verify your email address before you can sign in.
|
|
</div>
|
|
</div>
|