-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: context is entity with services, replace migrations
remove a bunch of service locator/direct wiring of service dependencies in favor of context BREAKING CHANGE: database must be reset and migrations run again
- Loading branch information
Showing
46 changed files
with
787 additions
and
569 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
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,30 @@ | ||
# Sessions | ||
|
||
The authentication classes in isolex supports JWT-based RBAC and sessions. | ||
|
||
While authentication for chat and HTTP is fundamentally the same, the protocols have radically different ways | ||
of tracking users. Most chat applications, for example, have already authenticated a user and established a session | ||
of their own. HTTP has no such session, until provided by a cookie. | ||
|
||
The authentication controller calls the underlying whatever to create a session. This includes the listener from the | ||
context. That means context should not be saved in the database, which makes sense. | ||
|
||
The session whatever notifies the listener that a session has been established between a user (based on the context | ||
passed) and the user fetched. | ||
|
||
TOKENS HAVE NOTHING TO DO WITH SESSIONS | ||
TOKENS PROVIDE THE INITIAL LOOKUP TO ASSOCIATE A USER WITH A LISTENER | ||
THAT IS A SESSION | ||
|
||
What is context? | ||
|
||
Context is: | ||
|
||
- source listener (service) | ||
- target ? (always starts equal to source, can change when message becomes command or for completion) | ||
- optional user (entity, loaded) | ||
- session data (flash) | ||
|
||
## Tokens | ||
|
||
Tokens are the only |
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
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
Oops, something went wrong.