mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-06 09:20:43 +01:00
2fa provider properties
This commit is contained in:
parent
0d30c89c5a
commit
3cc759791e
@ -3,7 +3,7 @@ export class ListResponse<T> {
|
|||||||
continuationToken: string;
|
continuationToken: string;
|
||||||
|
|
||||||
constructor(response: any, t: new (dataResponse: any) => T) {
|
constructor(response: any, t: new (dataResponse: any) => T) {
|
||||||
this.data = response.Data.map((dr) => new t(dr));
|
this.data = response.Data.map((dr: any) => new t(dr));
|
||||||
this.continuationToken = response.ContinuationToken;
|
this.continuationToken = response.ContinuationToken;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -24,36 +24,48 @@ export const TwoFactorProviders = {
|
|||||||
name: null as string,
|
name: null as string,
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 1,
|
priority: 1,
|
||||||
|
sort: 1,
|
||||||
|
premium: false,
|
||||||
},
|
},
|
||||||
[TwoFactorProviderType.Yubikey]: {
|
[TwoFactorProviderType.Yubikey]: {
|
||||||
type: TwoFactorProviderType.Yubikey,
|
type: TwoFactorProviderType.Yubikey,
|
||||||
name: null as string,
|
name: null as string,
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 3,
|
priority: 3,
|
||||||
|
sort: 2,
|
||||||
|
premium: true,
|
||||||
},
|
},
|
||||||
[TwoFactorProviderType.Duo]: {
|
[TwoFactorProviderType.Duo]: {
|
||||||
type: TwoFactorProviderType.Duo,
|
type: TwoFactorProviderType.Duo,
|
||||||
name: 'Duo',
|
name: 'Duo',
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 2,
|
priority: 2,
|
||||||
|
sort: 3,
|
||||||
|
premium: true,
|
||||||
},
|
},
|
||||||
[TwoFactorProviderType.OrganizationDuo]: {
|
[TwoFactorProviderType.OrganizationDuo]: {
|
||||||
type: TwoFactorProviderType.OrganizationDuo,
|
type: TwoFactorProviderType.OrganizationDuo,
|
||||||
name: 'Duo (Organization)',
|
name: 'Duo (Organization)',
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 10,
|
priority: 10,
|
||||||
|
sort: 4,
|
||||||
|
premium: false,
|
||||||
},
|
},
|
||||||
[TwoFactorProviderType.U2f]: {
|
[TwoFactorProviderType.U2f]: {
|
||||||
type: TwoFactorProviderType.U2f,
|
type: TwoFactorProviderType.U2f,
|
||||||
name: null as string,
|
name: null as string,
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 4,
|
priority: 4,
|
||||||
|
sort: 5,
|
||||||
|
premium: true,
|
||||||
},
|
},
|
||||||
[TwoFactorProviderType.Email]: {
|
[TwoFactorProviderType.Email]: {
|
||||||
type: TwoFactorProviderType.Email,
|
type: TwoFactorProviderType.Email,
|
||||||
name: null as string,
|
name: null as string,
|
||||||
description: null as string,
|
description: null as string,
|
||||||
priority: 0,
|
priority: 0,
|
||||||
|
sort: 6,
|
||||||
|
premium: false,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user