Documentation
¶
Index ¶
Constants ¶
View Source
const CookieName = "csrf_token"
CookieName is the name of the cookie storing the CSRF token.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service provides security token generation and CSRF cookie setting.
func NewService ¶
func NewService(signer consoleauth.Signer) *Service
NewService creates a new CSRF service.
func (*Service) GenerateSecurityToken ¶
GenerateSecurityToken generates a random signed security token.
Click to show internal directories.
Click to hide internal directories.