Tech Forum Network

Programming, technical solutions and hot scripts
Home » TechQns » Use authentication token of Django in backend

Use authentication token of Django in backend

September 29, 2014 Posted by forumadmin under TechQns
Comments off

i sent a Get request to my django backend with a Token authentication. After the authentication was succesful, I want to use the provided Token in my backend.

I already know how to check if it is a Token authentication by this piece of code:

if isinstance(request.auth, obd_data.token.UserIDToken):
    #Here I want to get the token for further processing

In debug mode, I already checked the whole request object and tried to find the token in there. But there is none.
Is it somehow possible to get this token? Or is it not designated to get the Token in plain text?

Thank you in forward.

 

Asked By – Igle        Read Answers    

More Related Questions

  • Extending the User model with custom fields in Django What's the best way to extend the User model (bundled with Django's authentication app) with custom fields? I would also possibly like to use the email as the username (for authentication […]
  • Using auth_token from request headers instead from POST/PUT parameters with Rails 3 / devise I need to use token based authentication in a Rails 3.1 API in conjunction with the most recent version of devise. No problem so far. Now I do not want to append my :auth_token to the […]
  • Token Authenticatable module in Devise I'm starting using Devise in my Rails app, but the Token Authenticatable: signs in a user based on an authentication token (also known as "single access token") module puzzles me. Is the […]
  • Django 1.6 – AnonymousUser object has no attribute backend I'm trying to create a simple user registration in Django and I get this error. I've looked it up here on stackoverflow: 'AnonymousUser' object has no attribute 'backend', […]
  • Which CAS implementation to use in django? Which CAS implementation should i use to enable CAS single sign on to my django app (trusing a specified CAS server, I'm not interested in creating a CAS provider) ? What I can find are […]
  • Which CAS implementation to use in django? Which CAS implementation should i use to enable CAS single sign on to my django app (trusing a specified CAS server, I'm not interested in creating a CAS provider) ? What I can find are […]
  • Authenticating requests from mobile (iPhone) app to ASP.Net Web API (Feedback requested on my design) I'm designing a web site that will have a mobile companion (initally iPhone only). The web site will be an ASP.Net MVC 3 application. I'll also have an ASP.Net Web API site (MVC 4) to […]
  • Django NoReverseMatch and auth Im dealing with a simple login app here. I can log in and logout perfectly. What is happening is that when i log out and i want to test what happens if try to go to a page that only log in […]
  • Token while authentification in a web java application using web services i have a web service "authentification" which gives users acces to their accounts, after getting the login and the password. but i need to generate a token to use it instead of login & […]
  • Allauth :- Redirect to Custom Form page before successful signup During Facebook Signup, I need to store user mobile number (required field). How can I achieve that? I tried to implement this via signal but I couldn't able to redirect page to required […]
0
  
Email
Tags: authentication, django, python, token

Comments are closed.

« How to redirect users to a page or message if not logged into joomdle.
Loading Qt GUI Widgets on application startup is significantly slower on Windows compared to Linux »
Tech Forum Network powered by WordPress and The Clear Line Theme