Understanding OAuth 2.0 Authentication with EPO

This space is made available to users of Open Patent Services (OPS) web-service and now also to users of EPO’s bulk data subscription products such as 14. EPO worldwide bibliographic database (DOCDB), 14.11 EPO worldwide legal status database (INPADOC), 14.12 EP full text data, 14.1 EP bibliographic data (EBD)and more.

Users can ask each other questions, exchange experiences and solutions, post ideas. The moderator will use this space to announce changes or other relevant information.
Post Reply

excellenting
Posts: 11
Joined: Mon Jun 05, 2017 5:40 pm

Understanding OAuth 2.0 Authentication with EPO

Post by excellenting » 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:
  • 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.


EPO / OPS Support
Posts: 992
Joined: Thu Feb 22, 2007 5:32 pm

Re: Understanding OAuth 2.0 Authentication with EPO

Post by EPO / OPS Support » Mon Jun 12, 2017 1:13 pm

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


Post Reply