Documentation
¶
Overview ¶
Package auth provides shared HMAC-signed session helpers used by glance and epoch for SSO cookie management.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomState ¶
func RandomState() string
RandomState returns a cryptographically random 32-character hex string suitable for OAuth state parameters and CSRF nonces.
func SignSession ¶
SignSession encodes and HMAC-signs a session into a cookie value.
Types ¶
Click to show internal directories.
Click to hide internal directories.