feat(cmd): Add custom cookie prefix (#732)
* Add cookie prefix option * Add explaination comment for TestCookieName * Rename TestCookieName value from cookie-test-if-you-block-this-anubis-wont-work to cookie-verification * Add changes to CHANGELOG.md * Add values to CookieName and TestCookieName in anubis.go required for testcases
This commit is contained in:
parent
6aa17532da
commit
d9e0fbe905
3 changed files with 9 additions and 2 deletions
|
|
@ -11,9 +11,11 @@ var Version = "devel"
|
|||
|
||||
// CookieName is the name of the cookie that Anubis uses in order to validate
|
||||
// access.
|
||||
const CookieName = "techaro.lol-anubis-auth"
|
||||
var CookieName = "techaro.lol-anubis-auth"
|
||||
|
||||
const TestCookieName = "techaro.lol-anubis-cookie-test-if-you-block-this-anubis-wont-work"
|
||||
// TestCookieName is the name of the cookie that Anubis uses in order to check
|
||||
// if cookies are enabled on the client's browser.
|
||||
var TestCookieName = "techaro.lol-anubis-cookie-verification"
|
||||
|
||||
// CookieDefaultExpirationTime is the amount of time before the cookie/JWT expires.
|
||||
const CookieDefaultExpirationTime = 7 * 24 * time.Hour
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue