Back to Node Auth0

Interface ConnectionScriptsOAuth2

docs/interfaces/management.Management.ConnectionScriptsOAuth2.html

5.9.11.3 KB
Original Source

Interface ConnectionScriptsOAuth2

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

interface ConnectionScriptsOAuth2 {
fetchUserProfile?: string;
getLogoutUrl?: string;
}

Index

Properties

fetchUserProfile?getLogoutUrl?

Properties

OptionalfetchUserProfile

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 in a sandboxed environment. If not provided, an empty profile object is used.

OptionalgetLogoutUrl

getLogoutUrl?: string

Custom JavaScript function to dynamically construct the logout URL for the identity provider. Called with the request query parameters and must invoke a callback with the logout URL. Only used if 'logoutUrl' is not configured. Executed in a sandboxed environment.

Settings

Member Visibility

  • Protected
  • Inherited

ThemeOSLightDark

On This Page

Properties fetchUserProfilegetLogoutUrl