2023-03-01 09:39:41 -06:00
|
|
|
/**
|
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
*/
|
|
|
|
|
|
2021-05-25 17:36:28 -04:00
|
|
|
import Component from '@glimmer/component';
|
|
|
|
|
import { options } from 'api/models/auth-method';
|
|
|
|
|
|
|
|
|
|
export default class FormAuthMethodOidcComponent extends Component {
|
|
|
|
|
// =attributes
|
|
|
|
|
/**
|
|
|
|
|
* @type {object}
|
|
|
|
|
*/
|
|
|
|
|
signingAlgorithms = options.oidc.signing_algorithms;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @type {object}
|
|
|
|
|
*/
|
|
|
|
|
toClaims = options.oidc.account_claim_maps.to;
|
2021-05-26 17:12:51 -04:00
|
|
|
|
2022-11-23 12:50:46 -05:00
|
|
|
/**
|
|
|
|
|
* @type {string}
|
|
|
|
|
*/
|
|
|
|
|
newToClaim = options.oidc.account_claim_maps.to[0];
|
|
|
|
|
|
2021-05-26 17:12:51 -04:00
|
|
|
/**
|
|
|
|
|
* @type {string}
|
|
|
|
|
*/
|
|
|
|
|
newSigningAlgorithm = options.oidc.signing_algorithms[0];
|
2021-05-25 17:36:28 -04:00
|
|
|
}
|