Documentation ¶
Index ¶
- Constants
- type HMAC
- type HOTP
- type Nonce
- type Permissions
- type RSA
- func (r *RSA) Decrypt(ciphertext []byte, key []byte, label string) ([]byte, error)
- func (r *RSA) Encrypt(plaintext []byte, clientID string, label string) ([]byte, []byte, error)
- func (r *RSA) Sign(message []byte) ([]byte, error)
- func (r *RSA) Validate(clientID string, request []byte, signature []byte) error
Constants ¶
View Source
const DIGITS = 6
View Source
const LOG_TAG = "auth"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Permissions ¶
type Permissions struct { Enabled bool // contains filtered or unexported fields }
func NewPermissions ¶
func NewPermissions(enabled bool, users, groups string) (*Permissions, error)
func (*Permissions) Validate ¶
func (p *Permissions) Validate(clientID, resource, action string) error
Click to show internal directories.
Click to hide internal directories.