Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8658141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T15:41:33+00:00 2026-06-12T15:41:33+00:00

Basically what I’m doing is building a desktop application that needs to connect to

  • 0

Basically what I’m doing is building a desktop application that needs to connect to a web server, perform some calculations, and then have the resulting values sent back to it. The calculations change over time, and also need to stay somewhat secure, which is why I’m not just coding them into the desktop application.

The issue is that only authenticated users should be allowed to access the server. So what I’m looking for is a way to log-in to Django from my desktop application (i.e. the desktop application will pop up a window asking for a username and password, which will then be sent to the Django site, used to authenticate the user, and if valid, will return the results of the computation. It also needs to work as a session (the user enters their password at the beginning and then doesn’t need to log-in again until they close the desktop application, even if multiple computations are performed).

I think I need to use session keys for this, and perhaps the RemoteUserMiddleware described here but I really have no idea where to start as far as coding this. Any suggestions or pointers in the right direction would be hugely appreciated.

Thanks,
-Morag

P.S. If this is important, the desktop application is written in VB.NET.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T15:41:34+00:00Added an answer on June 12, 2026 at 3:41 pm

    Interesting. I’ve never done anything like this, but here is, what I assume, is the basic idea:

    1) Get a good view of Django sessions; the basic idea is:

    • One logs in using the django auth framework login service
    • Django will create a session for you and handle all the difficult stuff
    • Django returns a HttpResponse with a sessionid cookie. You will need to send this back with any request following to identify yourself and ‘operate within the session’.
    • One logs out using the django auth logout service and the session is destroyed by Django.

    2) Now, the rest is relatively easy.

    • Setup django urls.py with the appropriate urls for login/logout + computation service
    • Execute a post request to the login service with the appropriate parameters set
    • Catch the response, extract the ‘sessionid’ cookie and save it somewhere
    • On each subsequent request, include the sessionid

    This should get you started. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically I have some simple code that does some things for files and I'm
Basically I have this server app I built in vc#, and for some reason
Basically I have a web service connected to a database, that has an insert
Basically, I have a UIImageView that will loop through 8 PNGs over 0.5 seconds.
Basically I've made a form in Cakephp 2.1 with a jQuery button that appends
Basically from C++ FAQ I learned that: A virtual function allows derived classes to
Basically what I am doing is giving a user a list of terms via
Basically from a database I am getting data that is formatted like this nameofproject101
Basically, what is needed to perform multisampled deferred shading. To expand a bit: I'm
Basically I have an iframe loaded that is accessed from the parent whenever it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.