Saimadhav Heblikar
unread,Nov 27, 2014, 1:33:54 PM11/27/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pes-ope...@googlegroups.com
Hi,
What I am trying to do: A command line application which needs to
authorize itself with a 3rd party API. The user should enter their
credentials(user name and password) only once. The application should
authorize itself, create OAuth tokens with requisite scopes(the API in
question supports this), and retrieve the access token for local
storage on the clients machine.
The way the API in question works(and has probably been designed for)
is it calls back(read as: redirects the web browser) to a predefined
URL with the access token as a request parameter. All this is fine.
My problem is that since the application is a command line based, how
do I solve this issue? Are there any known paradigms of going about
this? I really don't want to go down the route of using Selenium etc.
I can modify server side code as a last resort, but *only* as a last resort.
If my question is bit confusing, let me know and I shall provide more details.
--
Regards
Saimadhav Heblikar