mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-06 04:46:25 +02:00
* license: update headers to IBM Corp. * `make proto` * update offset because source file changed Signed-off-by: Ryan Cragun <me@ryan.ec> Co-authored-by: Ryan Cragun <me@ryan.ec>
17 lines
443 B
JavaScript
17 lines
443 B
JavaScript
/**
|
|
* Copyright IBM Corp. 2016, 2025
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import NamedPathAdapter from '../named-path';
|
|
|
|
export default class OidcKeyAdapter extends NamedPathAdapter {
|
|
pathForType() {
|
|
return 'identity/oidc/key';
|
|
}
|
|
rotate(name, verification_ttl) {
|
|
const data = verification_ttl ? { verification_ttl } : {};
|
|
return this.ajax(`${this.urlForUpdateRecord(name, 'oidc/key')}/rotate`, 'POST', { data });
|
|
}
|
|
}
|