Why there is no documentation that I can authenticate my tunnels using "globalThis.CF_CLIENT_ID"?

Such as using:
// Add Cloudflare Access Service Token credentials as global variables, used when Worker
// establishes the connection to Cloudflare Tunnel. This ensures only approved services can
// connect to your Tunnel.
declare global {
var CF_CLIENT_ID: string | undefined;
var CF_CLIENT_SECRET: string | undefined;
}

globalThis.CF_CLIENT_ID = CF_SERVICE_CLIENT_ID;
globalThis.CF_CLIENT_SECRET = CF_SERVICE_CLIENT_SECRET;

...
// Add Cloudflare Access Service Token credentials as global variables, used when Worker
// establishes the connection to Cloudflare Tunnel. This ensures only approved services can
// connect to your Tunnel.
declare global {
var CF_CLIENT_ID: string | undefined;
var CF_CLIENT_SECRET: string | undefined;
}

globalThis.CF_CLIENT_ID = CF_SERVICE_CLIENT_ID;
globalThis.CF_CLIENT_SECRET = CF_SERVICE_CLIENT_SECRET;

...
Not always an easy access to Fetch API is available. For example when using vector databases' client etc. šŸ™‚
1 Reply
Cyb3r-Jak3
Cyb3r-Jak3ā€¢13mo ago
Iā€™m confused on what you are trying to do? Like provider access service creds to your worker?
Want results from more Discord servers?
Add your server