Perl Monk, Perl Meditation | |
PerlMonks |
Re: LWP::Authen::OAuth2 terminologyby perlfan (Vicar) |
on Sep 03, 2020 at 02:34 UTC ( [id://11121311]=note: print w/replies, xml ) | Need Help?? |
>But will they or I be the user?
You are the user (consumer, client). Look at the curl example on your provider's site. It's about as basic as one can get. The constructor for LWP::Authen::OAuth2 requires the information that is needed for the request_token call, which is how you actually authenticate the client (instance of LWP::Authen::OAuth2). The instance (client) will then utilize the token when making calls via get, post, etc. Most of the complication is actually on the provider's end in facilitating the "conversation" that generates the token and sets access controls; but this is all done on the provider's end. LWP::Authen::OAuth2 is for the one making the API calls (you). Update - not sure, but looks like there are some service specific provider modules, e.g., LWP::Authen::OAuth2::ServiceProvider::Dwolla. So I am not sure if it's ready to roll out of the box or it just provides a foundation for something whacky a provider might do. Good luck.
In Section
Seekers of Perl Wisdom
|
|