getOauthAccessToken

Gets an OAuth access token, like the cfoauth tag. Takes a struct of the settings that cfoauth accepts as attributes.

getOauthAccessToken(input) → returns struct

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

Argument Reference

input struct
Required

A struct of OAuth settings. It needs either type or both authendpoint and accesstokenendpoint, as in cfoauth.

Compatibility

ColdFusion:

Version 2025+ Listed by getFunctionList() in ColdFusion 2025+. No official documentation exists. The argument name and the struct requirement were confirmed on CF2025.

Examples
Sample code invoking the getOauthAccessToken function

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

Fork me on GitHub