createWebKey method
ResponseFuture<CreateWebKeyResponse>
createWebKey(
- CreateWebKeyRequest request, {
- CallOptions? options,
Create Web Key
Deprecated: please move to the corresponding endpoint under oidc service v2. This endpoint will be removed with the next major version of ZITADEL.
Generate a private and public key pair. The private key can be used to sign OIDC tokens after activation.
The public key can be used to validate OIDC tokens.
The newly created key will have the state STATE_INITIAL and is published to the public key endpoint.
Note that the JWKs OIDC endpoint returns a cacheable response.
If no key type is provided, a RSA key pair with 2048 bits and SHA256 hashing will be created.
Required permission:
iam.web_key.write
Implementation
$grpc.ResponseFuture<$0.CreateWebKeyResponse> createWebKey(
$0.CreateWebKeyRequest request, {
$grpc.CallOptions? options,
}) {
return $createUnaryCall(_$createWebKey, request, options: options);
}