Understanding OAuth 2.0 Authentication with EPO
Posted: Sat Jun 10, 2017 10:34 am
I'm trying to understand and access the API with an OAuth 2o client for PHP (thephpleague / oauth2-client)
As processes I have performed the following:
urlResourceOwnerDetails -> This filed is mandatory but I don't know what put here. I tried with fake url.
That code return a error
I'm lost with this question.
Apreciate if anybody know some package for auth with EPO for use with PHP.
As processes I have performed the following:
- Create the app in my developer area
- I get two keys: Consumer Key & Consumer Secret Key
- Go to my client and setup
Code: Select all
$provider = new OauthClient([
'clientId' => 'put_here_Consumer Key', // The client ID assigned to you by the provider
'clientSecret' => 'put_here_Consumer Secret Key', // The client password assigned to you by the provider
'urlAuthorize' => 'https://ops.epo.org/3.1/',
'urlAccessToken' => 'https://ops.epo.org/3.1/auth/accesstoken',
'urlResourceOwnerDetails' => 'http://service.example.com/resource',
]);
That code return a error
I'm lost with this question.
Apreciate if anybody know some package for auth with EPO for use with PHP.