Skip to content

Commit

Permalink
Add new token_type filed to auth method mount-config (#5723)
Browse files Browse the repository at this point in the history
  • Loading branch information
madalynrose committed Nov 7, 2018
1 parent e7f1629 commit c6b497a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ui/app/models/auth-method.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export default DS.Model.extend({
tuneAttrs: computed(function() {
return expandAttributeMeta(this, [
'description',
'config.{listingVisibility,defaultLeaseTtl,maxLeaseTtl,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
'config.{listingVisibility,defaultLeaseTtl,maxLeaseTtl,tokenType,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
]);
}),

Expand All @@ -69,7 +69,7 @@ export default DS.Model.extend({
'accessor',
'local',
'sealWrap',
'config.{listingVisibility,defaultLeaseTtl,maxLeaseTtl,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
'config.{listingVisibility,defaultLeaseTtl,maxLeaseTtl,tokenType,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
];
}),

Expand All @@ -82,7 +82,7 @@ export default DS.Model.extend({
'config.listingVisibility',
'local',
'sealWrap',
'config.{defaultLeaseTtl,maxLeaseTtl,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
'config.{defaultLeaseTtl,maxLeaseTtl,tokenType,auditNonHmacRequestKeys,auditNonHmacResponseKeys,passthroughRequestHeaders}',
],
},
];
Expand Down
7 changes: 7 additions & 0 deletions ui/app/models/mount-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,11 @@ export default Fragment.extend({
helpText: 'Headers to whitelist and pass from the request to the backend',
editType: 'stringArray',
}),
tokenType: attr('string', {
label: 'Token Type',
helpText:
"The type of token that should be generated via this role. Can be `service`, `batch`, or `default` to use the mount's default (which unless changed will be `service` tokens).",
possibleValues: ['default', 'batch', 'service'],
defaultFormValue: 'default',
}),
});

0 comments on commit c6b497a

Please sign in to comment.