Auth0 · Schema

ConnectionScriptsOAuth1

Custom scripts to transform user profile data or modify OAuth1 flow behavior

AI AgentsAuthenticationAuthorizationFGAIdentity ManagementMCPOAuthOktaOpenID ConnectSAMLSecuritySCIM

Properties

Name Type Description
fetchUserProfile string Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed
View JSON Schema on GitHub

JSON Schema

auth0-connectionscriptsoauth1-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/ConnectionScriptsOAuth1",
  "title": "ConnectionScriptsOAuth1",
  "type": "object",
  "description": "Custom scripts to transform user profile data or modify OAuth1 flow behavior",
  "additionalProperties": false,
  "properties": {
    "fetchUserProfile": {
      "type": "string",
      "description": "Custom JavaScript function to retrieve and transform user profile data from the identity provider. Called with the access token and token exchange response. Must return a user profile object. Executed in a sandboxed environment. If not provided, an empty profile object is used.",
      "minLength": 0,
      "maxLength": 51200
    }
  }
}