jprimes has asked for the wisdom of the Perl Monks concerning the following question:
Dear Monks,
I would like to achieve the following:
An HTTP client implemented in Perl should redirect the user to an OAuth 2.0 authentication server. The user should authenticate exclusively through a web browser (e.g. Lynx) launched by the Perl script, since the HTTP client must not know the user's credentials.
Once the user has been successfully authenticated by the OAuth 2.0 authentication server through the browser, the HTTP response contains a redirect URI (typically in the Location header).
Question: is there a way to come back from the Lynx process to the Perl script, capturing the HTTP response received by Lynx in a Perl variable?
Please note that using a third-party user-agent is a requirement (so nothing for LWP).
Thank you in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: OAuth 2.0 - Starting Lynx from within a Perl script
by Corion (Patriarch) on Oct 01, 2015 at 10:15 UTC | |
by jprimes (Initiate) on Oct 02, 2015 at 15:03 UTC | |
|
Re: OAuth 2.0 - Starting Lynx from within a Perl script
by Anonymous Monk on Oct 01, 2015 at 17:36 UTC | |
by jprimes (Initiate) on Oct 02, 2015 at 15:08 UTC |