-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
91 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
(defpackage #:wst.cookies | ||
(:use #:cl) | ||
(:export | ||
#:initialize-session | ||
#:recover-session | ||
#:terminate-session | ||
#:update-session)) | ||
|
||
(in-package :wst.cookies) | ||
|
||
(defgeneric initialize-session (driver data &key &allow-other-keys)) | ||
(defgeneric recover-session (driver session-id &key &allow-other-keys)) | ||
(defgeneric terminate-session (driver session &key &allow-other-keys)) | ||
(defgeneric update-session (driver session &key &allow-other-keys)) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
(defpackage #:wst.session | ||
(:use #:cl) | ||
(:export | ||
#:create-session | ||
#:recover-session | ||
#:update-session | ||
#:session-exists-p | ||
#:renew-session | ||
#:terminate-session)) | ||
|
||
(in-package :wst.session) | ||
|
||
(defgeneric create-session (object data &key &allow-other-keys) | ||
(:documentation "Creates a new session for a user, returning a unique session ID.")) | ||
|
||
(defgeneric recover-session (object session-id &key &allow-other-keys) | ||
(:documentation "Retrieves the session data for the given session ID, or NIL if expired or non-existent.")) | ||
|
||
(defgeneric update-session (object session &key &allow-other-keys) | ||
(:documentation "Updates the SESSION for the given session ID.")) | ||
|
||
(defgeneric session-exists-p (object session-id &key &allow-other-keys) | ||
(:documentation "Returns T if the session exists and is active, NIL otherwise.")) | ||
|
||
(defgeneric renew-session (object session-id &optional additional-time &key &allow-other-keys) | ||
(:documentation "Renews the session by extending its expiry time.")) | ||
|
||
(defgeneric terminate-session (object session-id &key &allow-other-keys) | ||
(:documentation "Destroys the session with the given session ID.")) |
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,14 @@ | ||
(defpackage #:wst.web-server.session-csrf | ||
(:use #:cl) | ||
(:export | ||
#:session-csrf-token | ||
#:add-session-csrf-token | ||
#:remove-session-csrf-token | ||
#:verify-session-csrf-token)) | ||
|
||
(in-package :wst.web-server.session-csrf) | ||
|
||
(defgeneric session-csrf-token (obj &key &allow-other-keys)) | ||
(defgeneric add-session-csrf-token (obj key &key &allow-other-keys)) | ||
(defgeneric remove-session-csrf-token (obj &key &allow-other-keys)) | ||
(defgeneric verify-session-csrf-token (obj key &key &allow-other-keys)) |
File renamed without changes.
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,4 @@ | ||
(asdf:defsystem #:wst.cookies | ||
:pathname "cookies" | ||
:serial t | ||
:components ((:file "package"))) |
This file was deleted.
Oops, something went wrong.
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,4 @@ | ||
(asdf:defsystem #:wst.session | ||
:pathname "session" | ||
:serial t | ||
:components ((:file "package"))) |
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,4 @@ | ||
(asdf:defsystem #:wst.web-server.session-csrf | ||
:pathname "web-server" | ||
:serial t | ||
:components ((:file "session-csrf"))) |
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,4 @@ | ||
(asdf:defsystem #:wst.web-server.woo | ||
:pathname "web-server" | ||
:serial t | ||
:components ((:file "woo"))) |