Dare Obasanjo On Inside Windows Live posted today some new ways with the release of developer platform, to make it easier for mobile developers using mobile platforms such as Windows Phone, Android, and iOS to "easily integrate the ability for users to access their information such as contacts and photos from Hotmail, Messenger, and SkyDrive in their favorite mobile apps and devices."
Since mobile apps often may not have a website to redirect back to once the OAuth 2.0 authorization is complete (getting user permission to access Hotmail, SkyDrive and/or Messenger information), this step is now optional.
The process is streamlined in the following ways:
- Lightweight application setup process which requires no server-side code.
- Mobile optimized sign-in and user consent experiences
- Providing code samples which illustrate the key steps in building a mobile application that access a user’s cloud data
Once you click I accept, you are provided with a client ID and client secret.
Those familiar with OAuth 2.0 may notice that a step appears to be missing: providing the URL the user is redirected to after they've successfully logged in and granted access to your application to access their data. This step is now optional. Web-based apps can still provide this data on our application management site.
Mobile and desktop apps that don't have a website that the user can be redirected to should instead use https://oauth.live.com/desktop as their redirect URL when making OAuth 2.0 authorization requests. This URL shouldn't be provided as the redirect URL for the mobile app in the application management site since it'll be rejected," explains Obasanjo.
A sample SkyDrive code snippet is available to get you started. Stay tuned! for more code samples to come.
[Source:Inside Windows Live]