mirror of
https://github.com/bitwarden/browser.git
synced 2024-10-10 06:08:34 +02:00
db5a8df64e
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
47 lines
2.4 KiB
HTML
47 lines
2.4 KiB
HTML
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="apiKeyTitle">
|
|
<div class="modal-dialog modal-dialog-scrollable" role="document">
|
|
<form class="modal-content" #form (ngSubmit)="submit()" [appApiAction]="formPromise" ngNativeValidate>
|
|
<div class="modal-header">
|
|
<h2 class="modal-title" id="apiKeyTitle">{{apiKeyTitle | i18n}}</h2>
|
|
<button type="button" class="close" data-dismiss="modal" appA11yTitle="{{'close' | i18n}}">
|
|
<span aria-hidden="true">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>{{apiKeyDescription | i18n}}</p>
|
|
<app-verify-master-password [(ngModel)]="masterPassword" ngDefaultControl name="secret" *ngIf="!clientSecret">
|
|
</app-verify-master-password>
|
|
|
|
<app-callout type="warning" *ngIf="clientSecret">{{apiKeyWarning | i18n}}</app-callout>
|
|
<app-callout type="info" title="{{'oauth2ClientCredentials' | i18n}}" icon="fa-key"
|
|
*ngIf="clientSecret">
|
|
<p class="mb-1">
|
|
<strong>client_id:</strong><br>
|
|
<code>{{clientId}}</code>
|
|
</p>
|
|
<p class="mb-1">
|
|
<strong>client_secret:</strong><br>
|
|
<code>{{clientSecret}}</code>
|
|
</p>
|
|
<p class="mb-1">
|
|
<strong>scope:</strong><br>
|
|
<code>{{scope}}</code>
|
|
</p>
|
|
<p class="mb-0">
|
|
<strong>grant_type:</strong><br>
|
|
<code>{{grantType}}</code>
|
|
</p>
|
|
</app-callout>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading"
|
|
*ngIf="!clientSecret">
|
|
<i class="fa fa-spinner fa-spin" title="{{'loading' | i18n}}" aria-hidden="true"></i>
|
|
<span>{{(isRotation ? 'rotateApiKey' : 'viewApiKey') | i18n}}</span>
|
|
</button>
|
|
<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">{{'close' | i18n}}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|