Table of Contents

Interface IContextDataProvider

Namespace
Styra.Opa.AspNetCore
Assembly
Styra.Opa.AspNetCore.dll

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.

public interface IContextDataProvider

Methods

GetContextData(HttpContext)

object GetContextData(HttpContext context)

Parameters

context HttpContext

Returns

object