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 7787811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:47:24+00:00 2026-06-01T20:47:24+00:00

I need to associate a desktop application with a particular user’s account on a

  • 0

I need to associate a desktop application with a particular user’s account on a web site. Till now, the workflow was as follows:

Current process

  • Desktop application asks for user’s email, password and some extra info (computer’s name).
  • It calls into a web site using REST with user’s credentials, gets a newly created token and stores it. That token is used for authenticating the desktop application.

New process

Now, I want to allow users to sign up and log in into our web site using Facebook and possibly other third-party web sites. Obviously, Facebook log-in process cannot happen inside my desktop application, so I’m looking for a way to have all the association process in the browser, and transfer the generated token from the browser into the desktop application as the last step.

I prefer to use user’s default browser, and not WebBrowser control, since WebBrowser control uses IE, and if it is not the user’s default browser, all cookies (and Facebook login, etc.) will be missing.

Problem

What is the best way to automatically pass the 24-character alphanumeric token from a page open in a web browser to a desktop application. Manual cut&paste will not do… If there is any other way to sanely achieve what I’m trying to do, I’d love to hear about it too.

Platform

Desktop platform is Windows (currently), but we’re looking into creating client for MacOSX too. Web platform is Ruby on Rails 3.2 + jQuery.

  • 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-01T20:47:26+00:00Added an answer on June 1, 2026 at 8:47 pm

    For obvious security reasons, browsers don’t have this kind of functionality.

    Since browsers cannot directly save files to a user’s disk, your web app would have to generate a file with whatever OAuth token (Facebook, Twitter, whatever) and data you want into a file with a known file extension like “12345.haimg” and have your desktop app associate that file type within the OS so when the user opens the file, it passes that data to the desktop app. But while the web app can trigger an auto-download, the user will need to manually open the file themselves to ‘register’ to your desktop app, and since you can only associate one file extension with one application, you would need to set up multiple file extensions and file associations. Sounds more trouble than its worth.

    You could always just expose a hash token of some sort to the user in the web app which you could decode within your desktop app. The user would still need to manually cut and paste, but if it’s a one-time occurrence it shouldn’t have much impact, and will seem more secure to them than downloading lots of files, etc.. There will be a lot less overhead on your IT staff who wouldn’t have to set up all the file associations mentioned above.

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

Sidebar

Related Questions

We are currently building a web-based application that has the need to associate a
I'm writing an app where I need to associate data with user pairs. For
I need to associate a context menu in a WPF user control. I searched
We need to send email from our desktop application using C# 3.5 . The
I need to associate two models with a simple has_many. The problem is that
I'm working on a page where I need to associate a list of objects
I need to simplify this xml ( to a list ), and associate the
I am working on a Wpf desktop application, whenever i run my application it
I need to associate a file extension I have created .rulog with notepad.exe as
i need associate a entity property Address in my Person class entity with expressions

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.