Documentation
¶
Index ¶
Constants ¶
View Source
const ( InvalidAccessConfirmSubjectErrorName = "InvalidAccessConfirmSubject" InvalidAccessConfirmIssuerErrorName = "InvalidAccessConfirmIssuer" )
View Source
const ( DelegationNotFoundErrorName = "DelegationNotFound" InsufficientStorageErrorName = "InsufficientStorage" )
View Source
const ( InvalidAuthorizationAccountErrorName = "InvalidAuthorizationAccount" InvalidAuthorizationAudienceErrorName = "InvalidAuthorizationAudience" )
View Source
const ClaimCommand = "/access/claim"
View Source
const ConfirmCommand = "/access/confirm"
View Source
const ConfirmMetaKey = "accessConfirm"
ConfirmMetaKey is the key in metadata in any delegation created by a successful access request. The value is a link back to the `/access/confirm` invocation.
View Source
const DelegateCommand = "/access/delegate"
View Source
const RequestCommand = "/access/request"
View Source
const RequestMetaKey = "accessRequest"
RequestFactKey is the key in metadata in any delegation created by a successful access request. The value is a link back to the `/access/request` invocation.
Variables ¶
View Source
var ( ErrInvalidAccessConfirmSubject = errors.New(InvalidAccessConfirmSubjectErrorName, "the subject of an access confirm invocation must be the service itself") ErrInvalidAccessConfirmIssuer = errors.New(InvalidAccessConfirmIssuerErrorName, "the issuer of an access confirm invocation must be a valid mailto DID") )
View Source
var Claim, _ = bindcap.New[*ClaimArguments](ClaimCommand)
Claim can be invoked by an agent to claim a set of delegations from the account.
View Source
var Confirm, _ = bindcap.New[*ConfirmArguments](ConfirmCommand)
Confirm can be invoked by an agent to confirm an access request.
View Source
var Delegate, _ = bindcap.New[*DelegateArguments](DelegateCommand)
Delegate can be invoked by an agent to delegate a set of capabilities that may be subsequently claimed by another agent.
View Source
var Request, _ = bindcap.New[*RequestArguments](RequestCommand)
Request can be invoked by an agent to request set of capabilities from the account.
Functions ¶
This section is empty.
Types ¶
type CapabilityRequest ¶
type CapabilityRequest = adm.CapabilityRequestModel
type ClaimArguments ¶
type ClaimOK ¶
type ClaimOK = adm.ClaimOKModel
type ConfirmArguments ¶
type ConfirmArguments = adm.ConfirmArgumentsModel
type ConfirmOK ¶
type ConfirmOK = adm.ConfirmOKModel
type DelegateArguments ¶
type DelegateArguments = adm.DelegateArgumentsModel
type DelegateOK ¶
type RequestArguments ¶
type RequestArguments = adm.RequestArgumentsModel
type RequestOK ¶
type RequestOK = adm.RequestOKModel
Click to show internal directories.
Click to hide internal directories.