package
module
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Feb 17, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
🔐 pledge
SDK to provide different types of standard authentication & authorization capabilities
Supported standards
Execution
Valid pledge level configurations should be set up before identity generation/verification
go run cmd/example.go
Testing
go test ./... -cover -race
Documentation
¶
SetConfig sets pledge level configurations
type Auth interface {
GenerateIdentitiy(interface{}) (interface{}, error)
VerifyIdentity(args ...interface{}) (interface{}, error)
}
Auth is generic interface for authentication
New provides an instance of implementation of Auth interface according to requested auth method
type Config struct {
Issuer string `yaml:"issuer"`
PublicKeyPath string `yaml:"publickeypath"`
PrivateKeyPath string `yaml:"privatekeypath"`
}
Config defines all the attributes required to set up pledge
GetConfig returns pledge level configurations
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.