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

Hands-on Django example with login, logout, @login_required() etcetera #97

Open
dirkmoors opened this issue May 7, 2015 · 0 comments
Open

Comments

@dirkmoors
Copy link

Hi,

In order to be able to use this in my Django Project, I need to be able to use the default Django decorator '@login_required()', which will redirect a user to a 'LOGIN_URL', while providing GET parameter 'next=/page-we-came-from/' after a successfull login has been performed. One the login has been performed, and the redirection to the page we came from has succeeded, the system should see the user as authenticated so every subsequent request to views carying the '@login_required()' decorator, should just succeed without requesting a new login.
Afterwards the user should also have the option to perform an explicit LOG OUT, which invalidates the accesstoken en will make the user login again when he wants to access a view decorated with @login_required().

Is this possible? Will this ever be possible with this library? (And how?)

Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants