Package com.styra.opa.springboot
Interface ContextDataProvider
- All Known Implementing Classes:
ConstantContextDataProvider
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
This interface can be used to expose additional information to the OPA
policy via the context field. Data returned by getContextData() is placed
in input.context.data. The returned object must be JSON serializeable.
-
Method Summary
Modifier and TypeMethodDescriptiongetContextData
(Supplier<Authentication> authentication, RequestAuthorizationContext object)
-
Method Details
-
getContextData
-