Class ConnectionScriptsOAuth2
- Namespace
- Auth0.ManagementApi
- Assembly
- Auth0.ManagementApi.dll
Custom scripts to transform user profile data or modify OAuth2 flow behavior
[Serializable]
public record ConnectionScriptsOAuth2 : IJsonOnDeserialized, IEquatable<ConnectionScriptsOAuth2>
- Inheritance
-
ConnectionScriptsOAuth2
- Implements
- Inherited Members
- Extension Methods
Properties
AdditionalProperties
[JsonIgnore]
public ReadOnlyAdditionalProperties AdditionalProperties { get; }
Property Value
FetchUserProfile
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.
[JsonPropertyName("fetchUserProfile")]
public string? FetchUserProfile { get; set; }
Property Value
GetLogoutUrl
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.
[JsonPropertyName("getLogoutUrl")]
public string? GetLogoutUrl { get; set; }
Property Value
Methods
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.