PHP Classes

How can I get the Verifier?

Recommend this page to a friend!

      PHP OAuth Library  >  PHP OAuth Library package blog  >  How to Implement a PH...  >  All threads  >  How can I get the Verifier?  >  (Un) Subscribe thread alerts  
Subject:How can I get the Verifier?
Summary:I need to get the verifier from the oauth client
Messages:7
Author:kladogen
Date:2016-03-15 09:59:16
 

  1. How can I get the Verifier?   Reply   Report abuse  
Picture of kladogen kladogen - 2016-03-15 09:59:16
I need to get the verifier from the oauth client after the user confirms access to the data I want to get.
I can only get the token and the secret from the client. Is there a way to get the verifier?

Thanks

Antonis

  2. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-03-15 10:02:34 - In reply to message 1 from kladogen
The verifier is only useful to retrieve the token. The class already does that for you. Why would you need the verifier?

  3. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of kladogen kladogen - 2016-03-15 10:35:18 - In reply to message 2 from Manuel Lemos
Because I need it in order to call a web service in the form :
www1.gsis.gr/gsisapps/gsisdemo/gsis ...

It does not work without the verifier. I got it from the $_GET since it is in the call back URL but I still cant get it working.

Thanks!


  4. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-03-15 10:53:13 - In reply to message 3 from kladogen
This is a bit weird since the auth_verifier is just for verify the token before it is retrieved.

Would it be possible to have access to that API so I can understand why it is needed even after the token was retrieve?

  5. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of kladogen kladogen - 2016-03-15 11:21:31 - In reply to message 3 from kladogen
Sorry this is wrong.

What I'm trying to do is to authenticate through php to an oauth service and then download an xml file.

However what is happening is that I can authenticate with the client to the service but I cant figure out how to make an http request through the client.
For some reason if I make the http request to read the xml file through the web browser that the user authenticates with I get the xml file. But the server that called the client cant read the xml file.

So my question is : how can I read the XML file at the given URL through the oauth client?

Thanks!

  6. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of kladogen kladogen - 2016-03-15 11:42:58 - In reply to message 4 from Manuel Lemos
Sorry for waisting your time with my previous mistake.

I tried calling the CallAPI method with my service URL and 'GET' but the result I get is "Invalid token".

What am I doing wrong? I suspect that it is something fundamental.

Thanks in advance.

Antonis


  7. Re: How can I get the Verifier?   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2016-03-15 20:31:21 - In reply to message 6 from kladogen
You may be using wrong credentials.

Anyway, can you set the debug variable to true and enable PHP error log and post the log output here so we can see what happens?