OAuth-Probleme beim Verwenden der Search API

142 views
Skip to first unread message

marcel....@3dcontentlogistics.com

unread,
Jul 3, 2015, 5:20:05 AM7/3/15
to immobilienscou...@googlegroups.com
Hallo,

ich versuche die Search API zu verwenden habe aber Probleme mit der Authentifizierung über OAuth.
Zum testen verwende ich den RESTClient für Firefox. Ich versuche dabei z.B. auf folgende URL zuzugreifen:

Zur Erzeugung des OAuth Header verwende ich die Funktion des RESTClient(Authentification->OAuth) und habe dort entsprechend Consumer Key und Consumer Secret eingetragen.

Leider kann ein so erzeugter Request nicht erfolgreich verarbeitet werden. Ich erhallte folgende Antwort vom Server:

Response Header:
  • Status Code: 401 Unauthorized
  • Connection: Keep-Alive, Proxy-Support
  • Content-Length: 314
  • Content-Type: application/xml;charset=utf-8
  • Date: Fri, 03 Jul 2015 09:13:57 GMT
  • Proxy-Support: Session-Based-Authentication
  • Server: Apache
  • Via: 1.1 72S003
  • WWW-Authenticate: OAuth realm="IS24 API"
  • X-XSS-Protection: 1; mode=block

Response Body:
<common:messages xmlns:common="http://rest.immobilienscout24.de/schema/common/1.0">
 
<message>
 
<messageCode>ERROR_COMMON_AUTHENTICATION_REQUIRED</messageCode>
 
<message>Authentication is required for this operation. [ERROR MESSAGE: Invalid signature for signature method HMAC-SHA1]</message>
 
</message>
</common:messages>



Was mache ich falsch? Der von mir verwendete Consumer Key und das Secret sollten gültig sein, da sie in einer anderen App bereits erfolgreich verwendet werden.

Viele Grüße

Marcel

Fabian Mielke@ImmobilienScout24

unread,
Jul 13, 2015, 7:31:54 PM7/13/15
to immobilienscou...@googlegroups.com, marcel....@3dcontentlogistics.com
Hallo Marcel,

funktioniert der Aufruf via Playground? http://playground.immobilienscout24.de/rest/playground

Ansonsten mach doch mal einen Screenshot von deinen Eingaben im RESTClient.

MfG Fabian

Prateeksha Tiwari

unread,
Jul 29, 2015, 3:25:56 AM7/29/15
to immobilienscout24-development, marcel....@3dcontentlogistics.com
Hi Marcel,

I am also facing this authentication problem. Struggled alot in this but didn't got any satisfied result.
And I have tried from playground to fetch the details using my key and secrete key but still authentication problem occurs.

Reply all
Reply to author
Forward
0 new messages