Thursday 10, Apr 2025
We are moved to new domain
Click -> www.ehowtonow.com
Saturday, 16 September 2017

OAuth 2.0 Introduction

The OAuth 2.0 authorization framework enables a third-party application to obtain limited access to an HTTP service, either on behalf of a resource owner by orchestrating an approval interaction between the resource owner and the HTTP service, or by allowing the third-party application to obtain access on its own behalf.  This specification replaces and obsoletes the OAuth 1.0 protocol described in RFC 5849.

OAuth Introduction

In the traditional client-server authentication model, the client requests an access restricted resource (protected resource) on the server by authenticating with the server using the resource owner's credentials.  In order to provide third-party applications access to restricted resources, the resource owner shares its credentials with the third-party.

This creates several problems and limitations:
  1. Third-party applications are required to store the resource owner's credentials for future use, typically a password in clear-text.
  2. Servers are required to support password authentication, despite the security weaknesses inherent in passwords.
  3. Third-party applications gain overly broad access to the resource owner's protected resources, leaving resource owners without any   ability to restrict duration or access to a limited subset of resources.
  4. Resource owners cannot revoke access to an individual third-party without revoking access to all third-parties, and must do so by   changing their password.
  5. Compromise of any third-party application results in compromise of the end-user's password and all of the data protected by that password.

OAuth addresses these issues by introducing an authorization layer and separating the role of the client from that of the resource owner.  In OAuth, the client requests access to resources controlled by the resource owner and hosted by the resource server, and is issued a different set of credentials than those of the resource owner.

Instead of using the resource owner's credentials to access protected resources, the client obtains an access token - a string denoting a specific scope, lifetime, and other access attributes.  Access tokens are issued to third-party clients by an authorization server with the approval of the resource owner. The client uses the access token to access the protected resources hosted by the resource server.

For example, an end-user (resource owner) can grant a printing service (client) access to her protected photos stored at a photo sharing service (resource server), without sharing her username and password with the printing service.  Instead, she authenticates directly with a server trusted by the photo sharing service (authorization server), which issues the printing service delegation-specific credentials (access token).

Shop and help us

Flipkart Offer Snapdeal offer Amazon.in offer Amazon.com offer

Related Posts:

  • Mailru OAuth 2.0 Example with NingHttpClientConfig using Scribe JavaIn this example we are going to see about how to use Mailru OAuth2.0 with NingHttpClientConfig using Scribe Java Mailru OAuth2.0 Example with NingHttpClientConfig using Scribe MailruAsyncExample.java import com.github.scribe… Read More
  • TutBy OAuth 2.0 Example using Scribe JavaIn this example we are going to see about how to use TutBy OAuth2.0 using Scribe Java TutBy OAuth2.0 Example using Scribe TutByExample.java import java.util.Scanner; import com.github.scribejava.core.builder.ServiceBuilder;… Read More
  • Vkontakte OAuth 2.0 Example using Scribe JavaIn this example we are going to see about how to use Vkontakte OAuth2.0 using Scribe Java Vkontakte OAuth2.0 Example using Scribe VkontakteExample.java import java.util.Scanner; import com.github.scribejava.core.builder.Serv… Read More
  • Mailru OAuth 2.0 Example using Scribe JavaIn this example we are going to see about how to use Mailru OAuth2.0 using Scribe Java Mailru OAuth2.0 Example using Scribe MailruExample.java import java.util.Scanner; import com.github.scribejava.core.builder.ServiceBuilde… Read More
  • Viadeo OAuth 2.0 Example using Scribe JavaIn this example we are going to see about how to use Viadeo OAuth2.0 using Scribe Java Viadeo OAuth2.0 Example using Scribe ViadeoExample.java import java.util.Scanner; import com.github.scribejava.core.builder.ServiceBuilde… Read More
  • Blogger Comments
  • Facebook Comments
  • Disqus Comments

0 comments:

Post a Comment

Item Reviewed: OAuth 2.0 Introduction Rating: 5 Reviewed By: eHowToNow