OAuth 2 framework for OPS v 3.1

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

Posts: 1
Joined: Thu May 20, 2010 12:27 pm

OAuth 2 framework for OPS v 3.1

Post by rblo » Wed Aug 28, 2013 8:32 am

I need some help to use the OAuth 2 framework in my OPS software, implemented with cUrl calls in PHP.

Which OAuth.php library can I use?
How does the mechanism to gain the accestoken, looks like.

I've tried:
$consumer=new OAuthConsumer($CONSUMER_KEY, $CONSUMER_SECRET);
$request = OAuthRequest::from_consumer_and_token($consumer, NULL, 'GET', $rest_url, NULL);
$request->sign_request(new OAuthSignatureMethod_HMAC_SHA1(), $consumer, NULL);
$auth_header = $request->to_header();
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, array($auth_header));

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

Re: OAuth 2 framework for OPS v 3.1

Post by EPO / OPS Support » Wed Aug 28, 2013 3:29 pm

Dear user,

Please read OPS documentation, 2.3.3. Authentication & Access Token handling : http://www.epo.org/searching/free/ops/d ... ation.html

Kind regards,

OPS support

Post Reply