Oauth is the rescue mechanism when you want to share some of your data with another site or software without sharing the credentials for accessing your data. For e.g. If you want to share your photos that are private on Picasa without sharing your Picasa credentials with a Photo Studio for printing, OAuth comes to your rescue.
OAuth allows this by handing out a token to the requesting site instead of sharing the login credentials itself.
The token itself can define access to which site for which specific resources and for a defined duration.
This requires implementation from the accessing site as well as the site having the resources to share with the accessing site along with the device being used for the access.
1. User logs in to the Resource Accessing site (Consumer) like a print studio’s site
2. User places an order for print of photos stored in another site (Service Provider Site).
3. The Consumer site redirects the user to the Service Provider site
4. At the 2nd site, the user signs into the account where the site questions if the user certainly wants to share the resources with the origin site. On agreeing, the service provider site creates a token with information on what resources can be accessed for how long and
5. Then the token is shared with the Consumer site
6. Based on the token provided, the Consumer site can access the resources from the Provider site.
So, in this whole process the user did not have to share the login credentials at any point of time with the consumer site. This is the biggest advantage of the OAuth mechanism and is widely used by all the major social networking sites currently.
This helps in reducing the problem of having sharing resources across sites without sharing the user credentials between them.
In the OAuth Parlance, the following jargon are equivalent:
1. User a.k.a. Resource Owner
2. Service Provider a.k.a Server
3. Consumer a.k.a Client
My thoughts on various things as I explore and learn. If you are an interested android developer, you can visit my android blog
Amazon Ads
Wednesday, May 25, 2011
Monday, February 14, 2011
Developing Apps for iPhone and iPad
While both iPhone and iPad are from Apple and have the same underling OS and it is possible to run applications built for iPhone to be installed on iPad as well, porting iPhone apps to iPad is not a straight forward exercise.
In principle, the same app can run, however the user experience will not be great and will not meet the expectations of the use as the larger real estate on iPad will not be efficiently used.
Also, there are some fundamental differences between the two which have to be kept in mind while developing the applications:
In principle, the same app can run, however the user experience will not be great and will not meet the expectations of the use as the larger real estate on iPad will not be efficiently used.
Also, there are some fundamental differences between the two which have to be kept in mind while developing the applications:
| Features | iPhone | iPad |
| Phone | Yes | No |
| Camera | Yes (2 for video conferencing in iPhone 4) | No |
| Screen Size | 3.5 inch display | 9.7 inch display |
| Resolution | 960 x 480 | 1024 x 768 |
| GPS | Yes | only on Wi-Fi supported Models |
| Sensors | Gyroscope | No Gyroscope |
Every app needs to consider the Screen size and Resolution as the major difference. However apps that include phone features, GPS or Camera features will have to be rewritten for iPad.
Also, the lack of gyroscope in iPad makes it not so very suitable for gaming apps.
Monday, February 7, 2011
Telnet on Windows 7
By default, telnet is not enabled on Windows 7 due to insecure connection security concern.
In order to enable and install Telnet in Windows 7, the steps are easy, and similar to procedures to turn on and enable Telnet in Windows Vista:
* Open Control Panel.
* Go to Programs or Programs and Features.
* Click Turn Windows features on or off.
* In the “Windows Features” dialog box, select (tick) the Telnet Client check box.
* Click OK.
* After installation is done, Telnet can be used and called immediately.
In order to enable and install Telnet in Windows 7, the steps are easy, and similar to procedures to turn on and enable Telnet in Windows Vista:
* Open Control Panel.
* Go to Programs or Programs and Features.
* Click Turn Windows features on or off.
* In the “Windows Features” dialog box, select (tick) the Telnet Client check box.
* Click OK.
* After installation is done, Telnet can be used and called immediately.
Subscribe to:
Posts (Atom)