Class RulesRequest
- Namespace
- Auth0.ManagementApi.Models.Rules
- Assembly
- Auth0.ManagementApi.dll
Represents the root object POSTed from the Rules Engine, if you follow the example.
public class RulesRequest
- Inheritance
-
RulesRequest
- Inherited Members
Examples
//Add this to your Node.js Rule. Be sure to replace the secret token with a different value. request.post({ url: 'http://YourWebApiEndpoint', json: { user: user, context: context, secret_token: "SOMESECRETTOKEN", }, timeout: 15000 }, function(err, response, body){ user.persistent.your_variable = body.your_variable; callback(null, user, context); });
Properties
Context
An object containing contextual information of the current authentication transaction.
[JsonProperty("context")]
public RulesContext Context { get; set; }
Property Value
SecretToken
A random string you specify to make sure the request is coming from your Auth0 Rule.
[JsonProperty("secret_token")]
public string SecretToken { get; set; }
Property Value
User
The user object as it comes from the identity provider.
[JsonProperty("user")]
public User User { get; set; }