Discover Packages
github.com/raintreeinc/knowledgebase
auth
provider
trust
package
Version:
v0.0.0-...-48663ca
Opens a new window with list of versions in this module.
Published: Nov 28, 2023
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
This is a simple authentiaction scheme based on Hawk.
NOTE
This does not provide encryption of requests!
All requests are still visible in plain sight unless
other precautions are taken.
Only the client is verified - not the server response!
func Sign(serialized, key []byte ) []byte
type Peer struct {
Key []byte
}
Peer is trusted server information
Sign signs the request from id.
Verify checks whether the request is trusted.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.