mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
UI: Changes jwks_ca_pem param to a 'file' edit type (#24697)
* change jwks_ca_pem to file edit type * add changelog
This commit is contained in:
3
changelog/24697.txt
Normal file
3
changelog/24697.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
```release-note:bug
|
||||||
|
ui: Fixes input for jwks_ca_pem when configuring a JWT auth method
|
||||||
|
```
|
||||||
@@ -24,12 +24,31 @@ export default AuthConfig.extend({
|
|||||||
oidcClientSecret: attr('string', {
|
oidcClientSecret: attr('string', {
|
||||||
label: 'OIDC client secret',
|
label: 'OIDC client secret',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
oidcDiscoveryCaPem: attr('string', {
|
oidcDiscoveryCaPem: attr('string', {
|
||||||
label: 'OIDC discovery CA PEM',
|
label: 'OIDC discovery CA PEM',
|
||||||
editType: 'file',
|
editType: 'file',
|
||||||
helpText:
|
helpText:
|
||||||
'The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used',
|
'The CA certificate or chain of certificates, in PEM format, to use to validate connections to the OIDC Discovery URL. If not set, system certificates are used',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
jwksCaPem: attr('string', {
|
||||||
|
label: 'JWKS CA PEM',
|
||||||
|
editType: 'file',
|
||||||
|
}),
|
||||||
|
|
||||||
|
jwksUrl: attr('string', {
|
||||||
|
label: 'JWKS URL',
|
||||||
|
}),
|
||||||
|
|
||||||
|
oidcResponseMode: attr('string', {
|
||||||
|
label: 'OIDC response mode',
|
||||||
|
}),
|
||||||
|
|
||||||
|
oidcResponseTypes: attr('string', {
|
||||||
|
label: 'OIDC response types',
|
||||||
|
}),
|
||||||
|
|
||||||
jwtValidationPubkeys: attr({
|
jwtValidationPubkeys: attr({
|
||||||
label: 'JWT validation public keys',
|
label: 'JWT validation public keys',
|
||||||
editType: 'stringArray',
|
editType: 'stringArray',
|
||||||
@@ -38,14 +57,23 @@ export default AuthConfig.extend({
|
|||||||
jwtSupportedAlgs: attr({
|
jwtSupportedAlgs: attr({
|
||||||
label: 'JWT supported algorithms',
|
label: 'JWT supported algorithms',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
boundIssuer: attr('string', {
|
boundIssuer: attr('string', {
|
||||||
helpText: 'The value against which to match the iss claim in a JWT',
|
helpText: 'The value against which to match the iss claim in a JWT',
|
||||||
}),
|
}),
|
||||||
|
|
||||||
fieldGroups: computed('constructor.modelName', 'newFields', function () {
|
fieldGroups: computed('constructor.modelName', 'newFields', function () {
|
||||||
const type = this.constructor.modelName.split('/')[1].toUpperCase();
|
const type = this.constructor.modelName.split('/')[1].toUpperCase();
|
||||||
let groups = [
|
let groups = [
|
||||||
{
|
{
|
||||||
default: ['oidcDiscoveryUrl', 'defaultRole'],
|
default: [
|
||||||
|
'oidcDiscoveryUrl',
|
||||||
|
'defaultRole',
|
||||||
|
'jwksCaPem',
|
||||||
|
'jwksUrl',
|
||||||
|
'oidcResponseMode',
|
||||||
|
'oidcResponseTypes',
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
[`${type} Options`]: [
|
[`${type} Options`]: [
|
||||||
|
|||||||
Reference in New Issue
Block a user