mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 08:13:42 +00:00
Change presentation of config data (#9224)
This commit is contained in:
@@ -29,9 +29,9 @@
|
|||||||
{{ "twoStepLoginProviderEnabled" | i18n }}
|
{{ "twoStepLoginProviderEnabled" | i18n }}
|
||||||
</app-callout>
|
</app-callout>
|
||||||
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
|
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
|
||||||
<strong>{{ "twoFactorDuoIntegrationKey" | i18n }}:</strong> {{ ikey }}
|
<strong>{{ "twoFactorDuoClientId" | i18n }}:</strong> {{ clientId }}
|
||||||
<br />
|
<br />
|
||||||
<strong>{{ "twoFactorDuoSecretKey" | i18n }}:</strong> {{ skey }}
|
<strong>{{ "twoFactorDuoClientSecret" | i18n }}:</strong> {{ clientSecret }}
|
||||||
<br />
|
<br />
|
||||||
<strong>{{ "twoFactorDuoApiHostname" | i18n }}:</strong> {{ host }}
|
<strong>{{ "twoFactorDuoApiHostname" | i18n }}:</strong> {{ host }}
|
||||||
</ng-container>
|
</ng-container>
|
||||||
@@ -39,25 +39,25 @@
|
|||||||
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
|
<img class="float-right ml-3 mfaType2" alt="Duo logo" />
|
||||||
<p>{{ "twoFactorDuoDesc" | i18n }}</p>
|
<p>{{ "twoFactorDuoDesc" | i18n }}</p>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="ikey">{{ "twoFactorDuoIntegrationKey" | i18n }}</label>
|
<label for="ClientId">{{ "twoFactorDuoClientId" | i18n }}</label>
|
||||||
<input
|
<input
|
||||||
id="ikey"
|
id="ClientId"
|
||||||
type="text"
|
type="text"
|
||||||
name="IntegrationKey"
|
name="ClientId"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
[(ngModel)]="ikey"
|
[(ngModel)]="clientId"
|
||||||
required
|
required
|
||||||
appInputVerbatim
|
appInputVerbatim
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="skey">{{ "twoFactorDuoSecretKey" | i18n }}</label>
|
<label for="ClientSecret">{{ "twoFactorDuoClientSecret" | i18n }}</label>
|
||||||
<input
|
<input
|
||||||
id="skey"
|
id="ClientSecret"
|
||||||
type="password"
|
type="password"
|
||||||
name="SecretKey"
|
name="ClientSecret"
|
||||||
class="form-control"
|
class="form-control"
|
||||||
[(ngModel)]="skey"
|
[(ngModel)]="clientSecret"
|
||||||
required
|
required
|
||||||
appInputVerbatim
|
appInputVerbatim
|
||||||
autocomplete="new-password"
|
autocomplete="new-password"
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ import { TwoFactorBaseComponent } from "./two-factor-base.component";
|
|||||||
})
|
})
|
||||||
export class TwoFactorDuoComponent extends TwoFactorBaseComponent {
|
export class TwoFactorDuoComponent extends TwoFactorBaseComponent {
|
||||||
type = TwoFactorProviderType.Duo;
|
type = TwoFactorProviderType.Duo;
|
||||||
ikey: string;
|
clientId: string;
|
||||||
skey: string;
|
clientSecret: string;
|
||||||
host: string;
|
host: string;
|
||||||
formPromise: Promise<TwoFactorDuoResponse>;
|
formPromise: Promise<TwoFactorDuoResponse>;
|
||||||
|
|
||||||
@@ -59,8 +59,8 @@ export class TwoFactorDuoComponent extends TwoFactorBaseComponent {
|
|||||||
|
|
||||||
protected async enable() {
|
protected async enable() {
|
||||||
const request = await this.buildRequestModel(UpdateTwoFactorDuoRequest);
|
const request = await this.buildRequestModel(UpdateTwoFactorDuoRequest);
|
||||||
request.integrationKey = this.ikey;
|
request.integrationKey = this.clientId;
|
||||||
request.secretKey = this.skey;
|
request.secretKey = this.clientSecret;
|
||||||
request.host = this.host;
|
request.host = this.host;
|
||||||
|
|
||||||
return super.enable(async () => {
|
return super.enable(async () => {
|
||||||
@@ -78,8 +78,8 @@ export class TwoFactorDuoComponent extends TwoFactorBaseComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private processResponse(response: TwoFactorDuoResponse) {
|
private processResponse(response: TwoFactorDuoResponse) {
|
||||||
this.ikey = response.integrationKey;
|
this.clientId = response.integrationKey;
|
||||||
this.skey = response.secretKey;
|
this.clientSecret = response.secretKey;
|
||||||
this.host = response.host;
|
this.host = response.host;
|
||||||
this.enabled = response.enabled;
|
this.enabled = response.enabled;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1710,11 +1710,11 @@
|
|||||||
"twoFactorDuoDesc": {
|
"twoFactorDuoDesc": {
|
||||||
"message": "Enter the Bitwarden application information from your Duo Admin panel."
|
"message": "Enter the Bitwarden application information from your Duo Admin panel."
|
||||||
},
|
},
|
||||||
"twoFactorDuoIntegrationKey": {
|
"twoFactorDuoClientId": {
|
||||||
"message": "Integration key"
|
"message": "Client Id"
|
||||||
},
|
},
|
||||||
"twoFactorDuoSecretKey": {
|
"twoFactorDuoClientSecret": {
|
||||||
"message": "Secret key"
|
"message": "Client Secret"
|
||||||
},
|
},
|
||||||
"twoFactorDuoApiHostname": {
|
"twoFactorDuoApiHostname": {
|
||||||
"message": "API hostname"
|
"message": "API hostname"
|
||||||
|
|||||||
Reference in New Issue
Block a user