secretProviderGet

Returns a secret from a configured secret provider.

secretProviderGet(key [, name] [, resolve]) → returns any

This function requires Lucee 7.0.0.197 and up.  Not supported on Adobe ColdFusion, etc.

Argument Reference

key string
Required

The name of the secret.

name string

The secret provider to read from. When omitted, the providers are searched in the order they are configured.

resolve boolean

When true, the secret's value is read immediately. When false, it is read when first used.

Examples
Sample code invoking the secretProviderGet function

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub