oauth2 client
-
Hello i’d like to set-up an authentication 2 client in WordPress.
The client will connect to an authentication2 server which will then get a code and will be added to the redirect URL
My goal is to get some user info from the Authentication2 server which I do get through curl… in the linux terminal
I get the access token and then with the right parameters a and get method through Curl I receive an XML file with the users info
This is quite basic, my problem is that I need some help on how to implement this through p h p curl in a WordPress page.
My questions are
1. Can I implement this through a php snipset plugin?
2. Do I have to create and edit a PHP file on my WordPress server that means that I’ll have to log in through SSH on the server and implement the post and get methods in the /var/www/WordPress directory to get this working?
3. I feel that I’m missing something out to implement this
4. I can do all the above through a Linux bash terminal but I need this to get onto a web page. I assume I can do this through PHP can someone give me some hints on how to do this?
5. Do I just copy paste the PHP curl commands in a PHP file but where would this file in the WordPress directory have to be send the code with the redirect URL page?
6. Can I store the post method and the get method parameters in a separate file so that php looks them up from there how would I Implement this.
Thank you
- The topic ‘oauth2 client’ is closed to new replies.