Authorisation header

Recommend this page to a friend!

      PHP OAuth Library  >  All threads  >  Authorisation header  >  (Un) Subscribe thread alerts  
Subject:Authorisation header
Summary:How do you pass things like oauth_signature to the endpoint
Author:Mike Buckley
Date:2019-11-04 15:50:13
  1 - 10   11 - 15  

  11. Re: Authorisation header   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2019-11-15 00:09:53 - In reply to message 10 from Mike Buckley
Sorry for no response. I do have access to the repository now but I had not enough time to check it. Please hold on a few more days while I clear some important tasks that were pending.

  12. Re: Authorisation header   Reply   Report abuse  
Picture of Mike Buckley Mike Buckley - 2019-11-15 09:14:23 - In reply to message 11 from Manuel Lemos
No need to be sorry Manuel, just happy that your offering to help.. Thank you

  13. Re: Authorisation header   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2019-12-06 01:57:59 - In reply to message 12 from Mike Buckley
Sorry for the delay. Only now I have some time to look into this. Did you solve your problem or you still need help?

  14. Re: Authorisation header   Reply   Report abuse  
Picture of Mike Buckley Mike Buckley - 2019-12-06 11:44:38 - In reply to message 13 from Manuel Lemos
Hi Manuel, I'm afraid we haven't got anywhere so any help would be greatly appreciated. The files on the git repo are pretty much as they are now with the exception that I've changed the http.php I've forced the request conten type ($this->request_headers["Content-Type"]="application/xml;"." charset=utf-16"; So the errors we now get are to do with the signature:

[04-Dec-2019 13:19:30 Europe/Minsk] OAuth client: Checking the OAuth token authorization state

[04-Dec-2019 13:19:30 Europe/Minsk] OAuth client: The OAuth access token is not set

[04-Dec-2019 13:19:30 Europe/Minsk] OAuth client: Requesting the unauthorized OAuth token

[04-Dec-2019 13:19:30 Europe/Minsk] OAuth client: Accessing the OAuth request token at

[04-Dec-2019 13:19:30 Europe/Minsk] Connecting to

[04-Dec-2019 13:19:30 Europe/Minsk] Resolving HTTP server domain ""...

[04-Dec-2019 13:19:30 Europe/Minsk] Connecting to HTTP server IP port 443...

[04-Dec-2019 13:19:30 Europe/Minsk] Connected to

[04-Dec-2019 13:19:30 Europe/Minsk] C POST /Confirmit/FlexServices/PanelPortalService.svc/Logon/ HTTP/1.1

[04-Dec-2019 13:19:30 Europe/Minsk] C Host:

[04-Dec-2019 13:19:30 Europe/Minsk] C User-Agent: PHP-OAuth-API ( $Revision: 1.166 $)

[04-Dec-2019 13:19:30 Europe/Minsk] C Accept: */*

[04-Dec-2019 13:19:30 Europe/Minsk] C Authorization: OAuth oauth_consumer_key="3b8c9c29946c4e15", oauth_token="", oauth_signature_method="HMAC-SHA1", oauth_signature="7cpSUCwD%252Bsk7sELqjz%252F4tN6tiZQ%253D", oauth_timestamp="1575454770", oauth_nonce="62703d73584daf4fe474bf56108f29bc", oauth_version="1.0", oauth_callback=""

[04-Dec-2019 13:19:30 Europe/Minsk] C Connection: Keep-Alive

[04-Dec-2019 13:19:30 Europe/Minsk] C Content-Type: application/xml; charset=utf-16

[04-Dec-2019 13:19:30 Europe/Minsk] C Content-Length: 0

[04-Dec-2019 13:19:30 Europe/Minsk] C

[04-Dec-2019 13:19:41 Europe/Minsk] S HTTP/1.1 401 Invalid Signature

[04-Dec-2019 13:19:41 Europe/Minsk] S Cache-Control: private

[04-Dec-2019 13:19:41 Europe/Minsk] S Content-Type: application/xml; charset=utf-8

[04-Dec-2019 13:19:41 Europe/Minsk] S Server:

[04-Dec-2019 13:19:41 Europe/Minsk] S Set-Cookie: ASP.NET_SessionId=lso15u1cwt1car0qbpkzjcan; path=/; HttpOnly

[04-Dec-2019 13:19:41 Europe/Minsk] S X-Confirmit-ID: FE03

[04-Dec-2019 13:19:41 Europe/Minsk] S Strict-Transport-Security: max-age=15768000

[04-Dec-2019 13:19:41 Europe/Minsk] S Date: Wed, 04 Dec 2019 10:19:41 GMT

[04-Dec-2019 13:19:41 Europe/Minsk] S Content-Length: 218

[04-Dec-2019 13:19:41 Europe/Minsk] S

[04-Dec-2019 13:19:41 Europe/Minsk] S <ResponseError xmlns="" xmlns:i=""><ErrorMessage>Invalid Signature</ErrorMessage></ResponseError>

[04-Dec-2019 13:19:41 Europe/Minsk] Keeping the connection alive to

[04-Dec-2019 13:19:41 Europe/Minsk] OAuth client: Could not retrieve the OAuth access token. Error: it was not possible to access the OAuth request token: it was returned an unexpected response status 401 Response: <ResponseError xmlns="" xmlns:i=""><ErrorMessage>Invalid Signature</ErrorMessage></ResponseError>

I'm not in the office for a few days so I won't be in a position to trial any modifications, It's very kind of you to offer to help, I'll talk to my managers to see if we could compensate you in some way for your time.


  15. Re: Authorisation header   Reply   Report abuse  
Picture of Mike Buckley Mike Buckley - 2019-12-20 15:04:41 - In reply to message 14 from Mike Buckley
Hi Manuel,

We've had success with accessing the API but we ednded up using another method, thank you for any time you spent looking at this. We did tweak your originals to make the signature work but the xml result didn't seem to be handled correctly.

Thanks again


  1 - 10   11 - 15  

For more information send a message to info at phpclasses dot org.