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 Must[T any](v T, err error) T
- func PrivateKeyFromPEM(pemStr string) (*rsa.PrivateKey, error)
- func SavePrivateKey(keyPath string, privateKey *rsa.PrivateKey) error
- func SecretFromBase64(encoded string) ([]byte, error)
Constants ¶
View Source
const SecretSize = 32
Variables ¶
This section is empty.
Functions ¶
func GenerateClientID ¶
func GenerateClientSecret ¶
func GenerateState ¶
func LoadOrGeneratePrivateKey ¶
func LoadOrGeneratePrivateKey(keyPath string) (*rsa.PrivateKey, error)
func LoadOrGenerateSecret ¶
func LoadPrivateKey ¶
func LoadPrivateKey(keyPath string) (*rsa.PrivateKey, error)
func PrivateKeyFromPEM ¶
func PrivateKeyFromPEM(pemStr string) (*rsa.PrivateKey, error)
func SavePrivateKey ¶
func SavePrivateKey(keyPath string, privateKey *rsa.PrivateKey) error
func SecretFromBase64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.