-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure the clusterKey Cookie (#110)
- Loading branch information
Showing
7 changed files
with
163 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...etes-kit-starter/src/main/java/com/vaadin/kubernetes/starter/sessiontracker/SameSite.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.vaadin.kubernetes.starter.sessiontracker; | ||
|
||
/** | ||
* Enum for SameSite cookie attribute values. | ||
*/ | ||
public enum SameSite { | ||
|
||
/** | ||
* Cookies are sent in both first-party and cross-origin requests. | ||
*/ | ||
NONE("None"), | ||
|
||
/** | ||
* Cookies are sent in a first-party context, also when following a link to | ||
* the origin site. | ||
*/ | ||
LAX("Lax"), | ||
|
||
/** | ||
* Cookies are only sent in a first-party context (i.e. not when following a | ||
* link to the origin site). | ||
*/ | ||
STRICT("Strict"); | ||
|
||
private final String attributeValue; | ||
|
||
SameSite(String attributeValue) { | ||
this.attributeValue = attributeValue; | ||
} | ||
|
||
public String attributeValue() { | ||
return this.attributeValue; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters