Documentation
¶
Index ¶
- Constants
- func Err(err error) []zap.Field
- func GenerateClientID() (string, error)
- func GenerateClientSecret() (string, error)
- func GenerateKeyID(publicKey *rsa.PublicKey) (string, error)
- func GenerateState() (string, error)
- func LoadOrGeneratePrivateKey(keyPath string) (*rsa.PrivateKey, error)
- func LoadOrGenerateSecret(secretPath string) ([]byte, error)
- func LoadPrivateKey(keyPath string) (*rsa.PrivateKey, error)
- func SavePrivateKey(keyPath string, privateKey *rsa.PrivateKey) error
Constants ¶
View Source
const SecretSize = 32
Variables ¶
This section is empty.
Functions ¶
func GenerateClientID ¶
func GenerateClientSecret ¶
func GenerateState ¶ added in v1.2.2
func LoadOrGeneratePrivateKey ¶
func LoadOrGeneratePrivateKey(keyPath string) (*rsa.PrivateKey, error)
func LoadOrGenerateSecret ¶ added in v1.0.0
func LoadPrivateKey ¶
func LoadPrivateKey(keyPath string) (*rsa.PrivateKey, error)
func SavePrivateKey ¶
func SavePrivateKey(keyPath string, privateKey *rsa.PrivateKey) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.