For further consideration: Resolvers and value processors
Resolvers and value processors are key components in defining policies.
Modifying the rule for the Create Game endpoint introduces their use. Here is more about how you use them in your policies.
-
Resolvers
A resolver defines the source of an attribute’s value. In this case, the source is the HttpRequest.RequestBody policy request attribute, which is set automatically by PingAuthorize Server. Many other types of sources are available; for example, a resolver might define an attribute value using a constant, or a resolver might call out to an external API to obtain the attribute value.
-
Value Processors
Value processors extract and transform values from the source value provided by the resolver. In this case, a value processor uses a JSONPath expression to extract the value of a specific field from the HTTP request body provided by the resolver.