I successfully got django_openid_auth working in my django project, and can now login with my Google account. What I can't figure out is how to logout. The standard django.contrib.auth.views.logout view will logout the user, but subsequently visiting a page that requires authentication will authenticate the user again without a prompt. How can I completely logout the user?
logout with django and django_openid_auth
493 views Asked by chris At
1
There are 1 answers
Related Questions in DJANGO
- Django Admin Panel and Sub URLs Returning 404 Error on Deployment
- How to return HTTP Get request response from models class in Django project
- Issue with Quantity Increment in Django E-commerce Cart
- Can't install Pipenv on Windows
- use dict from python in django html template and also in js
- 'pyodbc.Cursor' object has no attribute 'callproc', mssql with django
- Django socketio process
- Root path analogue in uWSGI as in Uvicorn
- Django - ModuleNotFoundError: No module named 'backend'
- Does Python being a loosely typed programming language make it less secure?
- sorl-thumbnail adds a background color when padding is used
- Can't connect to local postgresql server from my docker container
- Why ProductHunt api dont work with Python?
- why i have to put extra space in before write option selected because it show error if i don't ' option:selected'
- Django Arrayfield migration to cloud sql (Postgresql) not creating the column
Related Questions in OPENID
- My openID Authentication return 'You must have either https wrappers or curl enabled.'
- How to migrate from Azure Static Web Apps to Azure App Service?
- angular oauth 2 oidc doesn't work with github idp
- How can I validate users with state (or nonce) when using OpenID with Steam
- Authenticate to two or more Keycloak confidential clients via openid-connect
- My web application won't return JSON from the server, but the url in a browser does
- Steam OAuth 2 Login in Vaadin Application
- How to implement account linking in Blazor Web App?
- Automatic Login from 3rd-Party OneLogin Apps to My App
- How to enable OpenID Connect in Dataverse
- Additional scopes for OAuth2 LinkedIn Sing In product
- Unable to Access Protected Endpoints in Azure Web App Using OAuth 2.0 Client Credentials Grant in Postman
- integration openiddict identityServer .net core 7 with client .net framework 4.8
- Codeigniter OpenID ERR_SSL_PROTOCOL_ERROR
- ASP.NET Core 8 using open id failed to authenticate the Cookie scheme
Related Questions in DJANGO-OPENID-AUTH
- django_openid_auth TypeError openid.yadis.manager.YadisServiceManager object is not JSON serializable
- django-allauth google integration gives "Social Network Login Failure" error
- Django Open ID - Assign permissions to users who have never logged in by email
- How does Google generate its OpenID claimed_id tokens?
- mozilla-django-oidc issue with Azure AD B2C
- django openid "Error using OpenID"
- Google apps login in django
- Django ImportError: Module "social_core.backends.google" does not define a "GoogleOpenId" attribute/class
- django-openid-auth OpenID failed : unknown user
- logout with django and django_openid_auth
- django-open-id: CSRF verification failed
- Django-openauth-id documentation and installation guides
- django: connecting to existing signal fails
- avoid asking too much information on google's OpenID
- django-openid-auth: TemplateSyntaxError
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
One of the purposes of OpenId is to simplify logging in process. Behaviour that you are experiencing is absolutelly correct. First time you were logging in to your application with your Google account, you allowed OpenId provider (Google) to send data to your application. As the data is still in database you don't have to be prompted again for allowing access.
Nevertheless if you want to be prompted again you should clear the data from database manually. You can do this by creating custom logout view or by using Signal infrastructure and adding the following:
to signals.py
It's worth mentioning that user_logged_out is available since Django 1.3