auth

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RPCSignatureVerifier

type RPCSignatureVerifier struct {
	// contains filtered or unexported fields
}

RPCSignatureVerifier verifies signed requests messages by owner accounts.

func NewRPCSignatureVerifier

func NewRPCSignatureVerifier(data code_data.Provider) *RPCSignatureVerifier

func (*RPCSignatureVerifier) Authenticate

func (v *RPCSignatureVerifier) Authenticate(ctx context.Context, owner *common.Account, message proto.Message, signature *commonpb.Signature) error

Authenticate authenticates that a RPC request message is signed by the owner account public key.

func (*RPCSignatureVerifier) AuthorizeDataAccess

func (v *RPCSignatureVerifier) AuthorizeDataAccess(ctx context.Context, dataContainerID *user.DataContainerID, owner *common.Account, message proto.Message, signature *commonpb.Signature) error

AuthorizeDataAccess authenticates and authorizes that an owner account can access data in a container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL