Table of Contents

Class OpaResponse

Namespace
Styra.Opa.AspNetCore
Assembly
Styra.Opa.AspNetCore.dll
public class OpaResponse
Inheritance
OpaResponse
Inherited Members

Fields

Context

[JsonProperty("context")]
public OpaResponseContext? Context

Field Value

OpaResponseContext

Decision

[JsonProperty("decision")]
public bool Decision

Field Value

bool

Methods

GetReasonForDecision(string)

Wraps OPAResponseContext.GetReasonForDecision(). If the context is omitted (which the spec permits), then it returns null.

public string? GetReasonForDecision(string searchKey)

Parameters

searchKey string

Returns

string