I am trying to expose our APIs to the clients and users and I want to allow them to access it only in case when they authorize themselves from our database using Oauth 2.0. I am planning to write it in core PHP. I have done enough research to find it on web. I have seen few codes on http://oauth.net/code under PHP section, but still not able to setup it in running condition. Can someone tell me the exact procedure to setup it on windows xampp machine or any library that I can deploy it directly.
Related
I am trying to configure the php sdk for managing the azure instance to perform basic operations like starting or stopping a VM,getting the IP of running VM,etc.I tried searching but didnt find any document.Is there any document available ? Also how to establish client session for the same ?
As far as I know, there is no SDK for PHP we can use to manage Azure VM at the present time. The REST Management API is the one you want to go for.
Reference:
Virtual Machines REST API
Having searched extensively on Stackoverflow as well Google, this question seems a lot of people need an answer for. Here is where I stand, and what needs to be achieve:
I have a standalone PHP application that makes use of Google Admin SDK and also has a database under the hood. I install it manually for each domain which wants to use it by copying files and replicating the database. All fine so far.
Next, I am trying to understand how to integrate and publish my PHP app on GAM v2 so as it can be:
installed by any domain administrator for entire domain so that users of the domain do not need to authorize the app at user level
each time the application instance is installed by a domain administrator, the entire set of files and database are "cloned" at a new location (on my server) that is specific to the domain being installed
I do not want to use Google Apps Engine or Cloud service to host this app
Can anyone please enlighten how to achieve this?
Thanks
PS: I have tried this documentation but didn't really understand fully; can someone help?
I am writing a simple admin tool in PHP for my own personal use that I would like to host on the free Azure Websites tier. I need to secure the site through a simple authentication scheme such as .htpasswd under *NIX servers.
Are there any recommended approaches to do this when running the site in PHP?
I have looked at the options in web.config, however they all appear to require a Windows user-account against which to authenticate. I have taken a look at Windows Azure Basic Authentication but I'm not too sure how I could run appcmd.exe against this website.
I have checked out the Windows Azure Active Directory integration options, but I can't see anything I can call from PHP (is there a RESTful API I can call maybe?).
I don't particularly want to write my own authentication handler and don't particularly want to run a micro-instance Linux VM....
If you are looking for simple authentication you can hard code the username and password combination in the login script itself and the info will be protected. If that does not satisfy your requirement you can use free version of mysql and store credentials their before using it. these two options are the simplest and free you can use. Also Active Directory or UAC based auth are overkill for your small project.
There is a Sample project that shows how to do Single Sign-on with Windows Azure Active Directory using PHP.
I haven't tested this code out in Windows Azure Web Sites as of yet, but it is available as a sample if you'd like to get an idea as to how you may be able to implement your own Auth Provider.
Our company currently offers free sub-domains for redirects to our customers. These are quite a popular feature, but unfortunately every time someone requests it, our staff must login to the Plesk panel and manually create this. It is only specifying the DNS name and an IP Address for the A-Record, but it would be great to be able to automate this in our Billing System for easy creation.
As I am not overly familiar with Plesk, does anyone know how I may be able to proceed with handling the creation of an A-Record in our Plesk install via PHP?
you can use the commandline interface or directly using the rpc api of plesk. see http://www.parallels.com/ptn/documentation/plesk/ for more information.
for commandline this seems simple enough:
http://download1.parallels.com/Plesk/PP10/10.1.1/Doc/en-US/online/plesk-unix-cli/37771.htm
As per my knowladge, Plesk is an interface for interacting and Managbe your web server settings. But It don't provide free api for doing stuff you have asked for.
You can use RPC API for the same. But that works using command prompt.
I am sure that would be bit complex to do.
I want oAuth verification process for a mobile application.For that i need to setup an oAuth server which listens to the requests and grant the access tokens.How do i set this up?I didnt found any relevant help on net.Please let me know.Also it will be good if it could be done using CakePHP
Regards
Himanshu Sharma
You would need an OAuth library for PHP that implements an OAuth service provider.
There are PECL and PEAR OAuth libraries, but my personal testimony is oauth-php as its simpler. I implemented both a server and client with it.
I cant comment on writing a service provider in Cake.
Updates based on OP's comments
Copy that directory to your PHP application to "install" it. You would need only CURL support from your host. There are no other prerequisites from the part of your host.
I did these steps to write an OAuth provider with oauth-php, do try these, google it and ask new questions when you get stuck.
read illustrated guides on how OAuth works
Studied relevant chapters from http://oauth.net/core/1.0a/ (try this order: 3,4, appendix,6 and 7 to start with)
read the example files included with the library, and see the how-tos in site's pages
hack those files and build it up your application