Page 1 of 1

Understanding OAuth 2.0 Authentication with EPO

Posted: Sat Jun 10, 2017 10:34 am
by excellenting
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:
  • 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',
]);
 
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.

Re: Understanding OAuth 2.0 Authentication with EPO

Posted: Mon Jun 12, 2017 1:13 pm
by EPO / OPS Support
Hi,

I see you are trying to obtain token for 3.1 which is no longer production version. Also, please check announcement section in this Forum about version 3.2 and follow instructions in OPS documentation for version 3.2: https://www.epo.org/searching-for-paten ... .html#tab3


There were also many older post in this forum on how to obtain and use token.

OPS support