BoundedAuthorityProtocol. V1. ExpectedGrant
(Bounded Authority Protocol v1.0.0)
Copy Markdown
View Source
Explicit expected context for standalone raw-grant verification.
Fields
issuer- the expectediss, compared byte-for-byte.audience- one audience your service answers to; the grant'saudmust contain it.evaluation_time- the caller's current time, integer Unix time in seconds; the library reads no clock.clock_skew- the tolerated clock skew in seconds,0toclock_skew(60).bounds- aBoundedAuthorityProtocol.V1.Boundsstruct or a map of tightening overrides;%{}means the profile maxima (seeBoundedAuthorityProtocol.V1.Bounds.coerce/1).
Summary
Types
Expected context for the façade's verify_grant/3 (for example BoundedAuthorityProtocol.V1.verify_grant/3).
Types
@type t() :: %BoundedAuthorityProtocol.V1.ExpectedGrant{ audience: binary(), bounds: BoundedAuthorityProtocol.V1.Bounds.t() | map(), clock_skew: non_neg_integer(), evaluation_time: integer(), issuer: binary() }
Expected context for the façade's verify_grant/3 (for example BoundedAuthorityProtocol.V1.verify_grant/3).