Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session management #19

Closed
eshaan7 opened this issue Sep 4, 2021 · 0 comments · Fixed by #20
Closed

Session management #19

eshaan7 opened this issue Sep 4, 2021 · 0 comments · Fixed by #20
Labels
enhancement New feature or request

Comments

@eshaan7
Copy link
Owner

eshaan7 commented Sep 4, 2021

I am using django-rest-durin in a closed-source project where I've extended it to add a sort-of "sessions management" feature.

  • REST view for an authenticated user to get list of sessions (in context of django-rest-durin, this means AuthToken instances), revoke session by ID. Useful for pages like "View active browser sessions".
  • REST views for an authenticated user to create/delete token against a pre-defined client. Useful for pages like "Get API key".

If and when I find the time, I'd really like to take that code, generalize it and make it part of this package.

@eshaan7 eshaan7 changed the title Views for sessions management Session management Sep 4, 2021
@eshaan7 eshaan7 added the enhancement New feature or request label Sep 19, 2021
@eshaan7 eshaan7 linked a pull request Sep 21, 2021 that will close this issue
4 tasks
eshaan7 added a commit that referenced this issue Jan 20, 2022
* new TokenSessionsSerializer & APIAccessTokenSerializer with views
* adjust example_project for new changes
* tests: refactor test_views, new SessionAndAPIAccessViewsTestCase
* docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant