SlideShare a Scribd company logo
Open Authentication
Saravanan
Authentication & Authorization
Authentication
Establishment of a binding of confidence
between and entity and an identity
Authorization
Process of establishing the rights for the
authenticated user
Why AuthN & AuthZ
• To avoid insecure resource access
• To give finer control on the resource access
• To track the various actions performed on
resources by the doer’s
• Increasing variations in resource consumers
• Overcoming security breaches
Ways to Achieve
• Authentication
– Username / Password
– Certificates
– Access tokens / established identity etc…
– Finger print / Retina Scan etc…
• Authorization
– Roles
– Policies
Authorization Background
• Policy Phases
– Definition
– Enforcement
• Access Control Lists / Capability
– Principle of least privilege
• Tokens
– Anonymous identity support
Need for OAuth
Problem
– Present day has Multitudes of
• Applications
• Identities
– Hard to remember authentication information
among above
Solution
– Delegated Authentication & Authorization
Use Case
Multitude of devices for accessing 1 application
SSO Use Case
Problems Addressed in OAuth
The Problem
1. Credentials Sharing
2. Unrestricted Access
3. Servers are required to handle
authentication & authorization
4. Difficulty in revoking
5. Huge chain of dependencies
6. Security breach
Solution
1. Abstracting the authorization layer from
the client & server
2. No more password sharing
3. Access Tokens / Valet Keys with
lifetimes
4. Takes place over HTTPS / SSL
5. Concealed / isolated identity
OAuth 2.0
What is OAuth
• OAuth 2.0 is an Authorization Framework
• Framework specifying
– Authentication & Authorization delegation
– Interactions in the delegation process
Specification
• Google, Yammer & Bitbucket all speak
through OAuth.
• Developed in 2006 by Twitter & Ma.gnolia
• Evolved from 1.0 to 2.0
• Main problem targeted by OAuth is
Access Delegation
Use Case
Roles in OAuth2.0
Resource [R]
A HTTP Resource / Service / App
Resource Owner [RO]
Entity that is capable of granting access to a resource
Resource Server [RS]
Protected resource Host
Client Application [CA]
Application making request to RS on behalf of RO to gain access to R
Authorization Server [AS]
Generates tokens after authenticating the RO and obtaining authorization
Flow
Authorization Grant
Server-side Scenarios
Target Applications
1. Any app that is web enabled / Desktop
2. Application that can access a browser
Flow
Microsoft Implementation
Implicit Grant
• Scripted client access
– Ex: Google Ad services API
• For well known clients
• No client validation happens
• Access Token sent as a fragment in the
response
OAuth 2.0 and OpenId Connect
Microsoft Implementation
Resource Owner Flow
• Fully trusted applications
• Not very secure
• Maintained for backward compatibility
• Use of existing data to generate the
access tokens
OAuth 2.0 and OpenId Connect
Sample
OpenID Connect
OpenID Connect
• Why OpenID Connect
– No responsibility of apps to maintain passwords
– Uses Claims to transfer profile information across diverse apps
• How does it work
– (Identity, Authentication) + OAuth 2.0 = OpenID Connect
• System-level support
– Android OS
– Windows Server 2012 – R2 [ADFS 3.0]
• OpenID makes use of OAuth 2 flows to establish identity
OAuth 2.0 and OpenId Connect
OpenID 2.0 & OpenID Connect
• Compared to OpenID2.0, OpenID Connect
uses
– JWT Data Structures
– Simplified signing of tokens
– No XML
– Highly interoperable
OpenID Connect Glossary
• IDP [AaaS]
– Any service that provides identity and authentication
• RP
– App that out sources its authentication to an IDP
• OP
– The OpenID provider
• Claims
– Piece of information about an entity / identity
Flow
Authentication Flows
Sample JWT
•
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjEz
ODY4OTkxMzEsImlzcyI6ImppcmE6MTU0ODk1OTUiLC
Jxc2giOiI4MDYzZmY0Y2ExZTQxZGY3YmM5MGM4YW
I2ZDBmNjIwN2Q0OTFjZjZkYWQ3YzY2ZWE3OTdiNDY
xNGI3MTkyMmU5IiwiaWF0IjoxMzg2ODk4OTUxfQ.uKq
U9dTB6gKwG6jQCuXYAiMNdfNRw98Hw_IWuA5MaMo
• <base64-encoded header>.<base64-encoded
claims>.<base64-encoded signature>
JWT Header
JWT Claims
OpenID & SAML
• SAML
– For web based apps
– Uses XML
• OpenID Connect
– JSON
– REST
– Any app [Native, Mobile, Web]
Realtime Implementation
• Authorization Server in TechCello
– OpenID Connect 1.0
– OAuth 2.0
• Supported Modes
– Social Logins [MSFT, GOOG, FB, TWT]
– WAAD
– ADFS 3.0
– LDAP
– Proprietary Authentication exposed as an OP
Points to Ponder Upon
• Automated OP Discovery
• Automated Client Registration
OAuth 2.0 and OpenId Connect

More Related Content

What's hot (20)

PDF
OAuth & OpenID Connect Deep Dive
Nordic APIs
 
PPTX
OpenID Connect: An Overview
Pat Patterson
 
PDF
OAuth 2.0 and OpenID Connect
Jacob Combs
 
PPTX
OAuth 2
ChrisWood262
 
PPTX
Intro to OAuth2 and OpenID Connect
LiamWadman
 
PPTX
An Introduction to OAuth 2
Aaron Parecki
 
PPTX
An Introduction to OAuth2
Aaron Parecki
 
PDF
Implementing OAuth
leahculver
 
PDF
Stateless Auth using OAUTH2 & JWT
Mobiliya
 
PDF
API Security Best Practices & Guidelines
Prabath Siriwardena
 
ODP
OAuth2 - Introduction
Knoldus Inc.
 
PPTX
Rest API Security - A quick understanding of Rest API Security
Mohammed Fazuluddin
 
PPTX
An introduction to OAuth 2
Sanjoy Kumar Roy
 
PPTX
IdP, SAML, OAuth
Dan Brinkmann
 
PDF
Demystifying OAuth 2.0
Karl McGuinness
 
PPTX
OAuth2 + API Security
Amila Paranawithana
 
PPTX
What is an API Gateway?
LunchBadger
 
PDF
SAML VS OAuth 2.0 VS OpenID Connect
Ubisecure
 
PDF
Demystifying SAML 2.0,Oauth 2.0, OpenID Connect
Vinay Manglani
 
OAuth & OpenID Connect Deep Dive
Nordic APIs
 
OpenID Connect: An Overview
Pat Patterson
 
OAuth 2.0 and OpenID Connect
Jacob Combs
 
OAuth 2
ChrisWood262
 
Intro to OAuth2 and OpenID Connect
LiamWadman
 
An Introduction to OAuth 2
Aaron Parecki
 
An Introduction to OAuth2
Aaron Parecki
 
Implementing OAuth
leahculver
 
Stateless Auth using OAUTH2 & JWT
Mobiliya
 
API Security Best Practices & Guidelines
Prabath Siriwardena
 
OAuth2 - Introduction
Knoldus Inc.
 
Rest API Security - A quick understanding of Rest API Security
Mohammed Fazuluddin
 
An introduction to OAuth 2
Sanjoy Kumar Roy
 
IdP, SAML, OAuth
Dan Brinkmann
 
Demystifying OAuth 2.0
Karl McGuinness
 
OAuth2 + API Security
Amila Paranawithana
 
What is an API Gateway?
LunchBadger
 
SAML VS OAuth 2.0 VS OpenID Connect
Ubisecure
 
Demystifying SAML 2.0,Oauth 2.0, OpenID Connect
Vinay Manglani
 

Similar to OAuth 2.0 and OpenId Connect (20)

PDF
CIS14: Working with OAuth and OpenID Connect
CloudIDSummit
 
PDF
Full stack security
DPC Consulting Ltd
 
PPT
OAuth2.0
Muktadiur Rahman
 
PDF
2019 - Nova Code Camp - AuthZ fundamentals with ASP.NET Core
Vladimir Bychkov
 
PDF
Access Management for Cloud and Mobile
ForgeRock
 
PPTX
Devteach 2017 OAuth and Open id connect demystified
Taswar Bhatti
 
PDF
What the Heck is OAuth and OpenID Connect? Connect.Tech 2017
Matt Raible
 
PPTX
Y U No OAuth?!?
Jason Robert
 
PDF
JDD2015: Security in the era of modern applications and services - Bolesław D...
PROIDEA
 
PPTX
OAuth 2.0 - The fundamentals, the good , the bad, technical primer and commo...
Good Dog Labs, Inc.
 
PDF
CIS13: Bootcamp: Ping Identity OAuth and OpenID Connect In Action with PingFe...
CloudIDSummit
 
PPTX
Wso2 is integration with .net core
Ismaeel Enjreny
 
PPTX
Y U No OAuth, Using Common Patterns to Secure Your Web Applications
Jason Robert
 
PDF
Authorization Architecture Patterns: How to Avoid Pitfalls in #OAuth / #OIDC ...
Tatsuo Kudo
 
PDF
What the Heck is OAuth and OpenID Connect - DOSUG 2018
Matt Raible
 
PDF
OAuth Base Camp
Oliver Pfaff
 
PDF
What the Heck is OAuth and Open ID Connect? - UberConf 2017
Matt Raible
 
PDF
What the Heck is OAuth and OpenID Connect - RWX 2017
Matt Raible
 
PDF
Stateless authentication for microservices applications - JavaLand 2015
Alvaro Sanchez-Mariscal
 
PPTX
OAuth
Adi Challa
 
CIS14: Working with OAuth and OpenID Connect
CloudIDSummit
 
Full stack security
DPC Consulting Ltd
 
2019 - Nova Code Camp - AuthZ fundamentals with ASP.NET Core
Vladimir Bychkov
 
Access Management for Cloud and Mobile
ForgeRock
 
Devteach 2017 OAuth and Open id connect demystified
Taswar Bhatti
 
What the Heck is OAuth and OpenID Connect? Connect.Tech 2017
Matt Raible
 
Y U No OAuth?!?
Jason Robert
 
JDD2015: Security in the era of modern applications and services - Bolesław D...
PROIDEA
 
OAuth 2.0 - The fundamentals, the good , the bad, technical primer and commo...
Good Dog Labs, Inc.
 
CIS13: Bootcamp: Ping Identity OAuth and OpenID Connect In Action with PingFe...
CloudIDSummit
 
Wso2 is integration with .net core
Ismaeel Enjreny
 
Y U No OAuth, Using Common Patterns to Secure Your Web Applications
Jason Robert
 
Authorization Architecture Patterns: How to Avoid Pitfalls in #OAuth / #OIDC ...
Tatsuo Kudo
 
What the Heck is OAuth and OpenID Connect - DOSUG 2018
Matt Raible
 
OAuth Base Camp
Oliver Pfaff
 
What the Heck is OAuth and Open ID Connect? - UberConf 2017
Matt Raible
 
What the Heck is OAuth and OpenID Connect - RWX 2017
Matt Raible
 
Stateless authentication for microservices applications - JavaLand 2015
Alvaro Sanchez-Mariscal
 
OAuth
Adi Challa
 
Ad

Recently uploaded (20)

PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PPTX
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
PDF
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PPTX
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
DOCX
Import Data Form Excel to Tally Services
Tally xperts
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PDF
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Tally software_Introduction_Presentation
AditiBansal54083
 
A Complete Guide to Salesforce SMS Integrations Build Scalable Messaging With...
360 SMS APP
 
Salesforce CRM Services.VALiNTRY360
VALiNTRY360
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
Agentic Automation Journey Session 1/5: Context Grounding and Autopilot for E...
klpathrudu
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Java Native Memory Leaks: The Hidden Villain Behind JVM Performance Issues
Tier1 app
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Fundamentals_of_Microservices_Architecture.pptx
MuhammadUzair504018
 
Import Data Form Excel to Tally Services
Tally xperts
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Mobile CMMS Solutions Empowering the Frontline Workforce
CryotosCMMSSoftware
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Ad

OAuth 2.0 and OpenId Connect