import * as pulumi from "@pulumi/pulumi"; /** * Client Assertion JWT is a more secure alternative to client secret authentication for OIDC and Okta Workforce connections. It uses a signed JWT instead of a shared secret to authenticate the client. The resource only supports key rotation. Use the auth0.ConnectionKeys data source to read existing keys. Removing the resource from configuration will NOT DELETE the key. * * !> The triggers field is only a placeholder for an arbitrary map used to signal the provider * to perform a key rotation whenever any update is made. * If the resource is removed from the configuration, the keys will not be deleted. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * const myClient = new auth0.Client("my_client", {name: "My-Auth0-Client"}); * const oidc = new auth0.Connection("oidc", { * name: "OIDC-Connection", * strategy: "oidc", * options: { * clientId: myClient.id, * scopes: [ * "ext_nested_groups", * "openid", * ], * issuer: "https://example.com", * authorizationEndpoint: "https://example.com", * jwksUri: "https://example.com/jwks", * type: "front_channel", * discoveryUrl: "https://www.paypalobjects.com/.well-known/openid-configuration", * tokenEndpointAuthMethod: "private_key_jwt", * tokenEndpointAuthSigningAlg: "RS256", * }, * }); * // Resource used to rotate the keys for above OIDC connection * const myKeys = new auth0.ConnectionKeys("my_keys", { * connectionId: oidc.id, * triggers: { * version: "1", * date: "2023-10-01T00:00:00Z", * }, * }); * ``` */ export declare class ConnectionKeys extends pulumi.CustomResource { /** * Get an existing ConnectionKeys resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: ConnectionKeysState, opts?: pulumi.CustomResourceOptions): ConnectionKeys; /** * Returns true if the given object is an instance of ConnectionKeys. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is ConnectionKeys; /** * The signing key algorithm. */ readonly algorithm: pulumi.Output; /** * The public certificate of the signing key. */ readonly cert: pulumi.Output; readonly connectionId: pulumi.Output; /** * True if the key is the current key. */ readonly current: pulumi.Output; /** * The date and time when the key became the current key. */ readonly currentSince: pulumi.Output; /** * The certificate fingerprint. */ readonly fingerprint: pulumi.Output; /** * The signing key use, whether for encryption or signing. */ readonly keyUse: pulumi.Output; /** * The key ID of the signing key. */ readonly kid: pulumi.Output; /** * True if the key is the next key. */ readonly next: pulumi.Output; /** * The public certificate of the signing key in PKCS7 format. */ readonly pkcs: pulumi.Output; /** * True if the key is the previous key. */ readonly previous: pulumi.Output; /** * The subject distinguished name (DN) of the certificate. */ readonly subjectDn: pulumi.Output; /** * The certificate thumbprint. */ readonly thumbprint: pulumi.Output; /** * This is an arbitrary map, which when edited shall perform rotation of keys for the corresponding connection. It can host keys like version, timestamp of last rotation etc.The field has no association with API */ readonly triggers: pulumi.Output<{ [key: string]: string; }>; /** * Create a ConnectionKeys resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: ConnectionKeysArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering ConnectionKeys resources. */ export interface ConnectionKeysState { /** * The signing key algorithm. */ algorithm?: pulumi.Input; /** * The public certificate of the signing key. */ cert?: pulumi.Input; connectionId?: pulumi.Input; /** * True if the key is the current key. */ current?: pulumi.Input; /** * The date and time when the key became the current key. */ currentSince?: pulumi.Input; /** * The certificate fingerprint. */ fingerprint?: pulumi.Input; /** * The signing key use, whether for encryption or signing. */ keyUse?: pulumi.Input; /** * The key ID of the signing key. */ kid?: pulumi.Input; /** * True if the key is the next key. */ next?: pulumi.Input; /** * The public certificate of the signing key in PKCS7 format. */ pkcs?: pulumi.Input; /** * True if the key is the previous key. */ previous?: pulumi.Input; /** * The subject distinguished name (DN) of the certificate. */ subjectDn?: pulumi.Input; /** * The certificate thumbprint. */ thumbprint?: pulumi.Input; /** * This is an arbitrary map, which when edited shall perform rotation of keys for the corresponding connection. It can host keys like version, timestamp of last rotation etc.The field has no association with API */ triggers?: pulumi.Input<{ [key: string]: pulumi.Input; }>; } /** * The set of arguments for constructing a ConnectionKeys resource. */ export interface ConnectionKeysArgs { connectionId: pulumi.Input; /** * This is an arbitrary map, which when edited shall perform rotation of keys for the corresponding connection. It can host keys like version, timestamp of last rotation etc.The field has no association with API */ triggers: pulumi.Input<{ [key: string]: pulumi.Input; }>; }