laziness, impatience, and hubris | |
PerlMonks |
Oauth2 help neededby superwombat (Acolyte) |
on Sep 07, 2018 at 16:36 UTC ( [id://1221932]=perlquestion: print w/replies, xml ) | Need Help?? |
superwombat has asked for the wisdom of the Perl Monks concerning the following question: Monks, I have spent the last 2 days scouring the internet for information on how to authenticate a perl app using oauth2. There are a half-dozen modules that claim to assist with this process, and not a single one has documentation or examples or any hint on how to construct the request successfully. I decided to work with LWP::Authen::OAuth2 and came up with the following code (This is for attempting to authenticate with Yahoo). The number one issue I have is the redirect_uri. It seems like the oauth2 spec always assumes that any developer has access to their own website to host a redirect page on? This must be super-obvious, because every tutorial site just hand-waves over this parameter with "put your redirect uri here" without even attempting to suggest what one might look like, especially if you're running a standalone application. Some sites mentioned that you can redirect to localhost... again, without any sort of suggestion as to how you might do that. So... question 1. How to I form a redirect URI for a locally executed application in a windows environment? I'm sure I have more questions and errors in my code, but I won't be able to find those until I can fill in some reasonable value for the redirect_uri.
Back to
Seekers of Perl Wisdom
|
|