Skip to the content.

OAuth.

What is OAuth?

OAuth is an authentication protocol that allows you to approve one application interacting with another on your behalf without giving away your password.

SAML vs. OAuth

|SAML|OAuth| |—|—| |uses XML to pass messages|OAuth uses JSON| | geared towards enterprise security| provides a simpler mobile experience| |SAML, on the other hand, drops a session cookie in a browser that allows a user to access certain web pages – great for short-lived work days, but not so great when have to log into your thermostat every day.|OAuth uses API calls extensively, which is why mobile applications, modern web applications, game consoles, and Internet of Things (IoT) devices find OAuth a better experience for the user|

OAuth Explained:

How Does OAuth Works:

There are 3 main players in an OAuth transaction:

1- Step 1 – The User Shows Intent

2- Step 2 – The Consumer Gets Permission

3- Step 3 – The User Is Redirected to the Service Provider

4- Step 4 – The User Gives Permission

5-Step 5 – The Consumer Obtains an Access Token

6-Step 6 – The Consumer Accesses the Protected Resource

Note that Joe never had to share his Twitter credentials with Bitly. He simply delegated access using OAuth in a secure manner.