This repository was archived by the owner on Jun 12, 2021. It is now read-only.
Custom sessiondb#16
Merged
rohe merged 7 commits intoIdentityPython:masterfrom Nov 30, 2019
peppelinux:custom_sessiondb
Merged
Conversation
pkce support
Member
Author
|
I'll go further with a configurabile sessiondb and ssodb in general conf.yaml |
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With this Commit I can set a session_db in a context_endpoint whenever it's needed.
Used here:
https://github.com/peppelinux/django-oidc-op/blob/master/oidc_op/application.py#L49
With this feature I can switch the session db runtime. For example I would use an user's request.session as backend, on each request.
This is a more flexible approach and let me configure this aspect in a more granular way during the application (oidc-op) initialization and runtime.
This is the base I need, if it is there some other approach let's discuss them.
I need this commits to move to a pure Django Session and SSO Db management.
https://docs.djangoproject.com/en/2.2/topics/http/sessions/