0% found this document useful (0 votes)
224 views21 pages

Authorization IdentityServer4v2

This document provides an overview of OAuth 2.0, OpenID Connect, and Single Sign-On (SSO) and how IdentityServer4 can be used to implement these protocols. It discusses the OAuth 2.0 and OpenID Connect specifications and flows. It also demonstrates how IdentityServer4 can be used to secure APIs, web applications, and mobile applications using OAuth 2.0 and OpenID Connect for authentication and authorization. Helpful links are provided for additional resources.

Uploaded by

nambir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
224 views21 pages

Authorization IdentityServer4v2

This document provides an overview of OAuth 2.0, OpenID Connect, and Single Sign-On (SSO) and how IdentityServer4 can be used to implement these protocols. It discusses the OAuth 2.0 and OpenID Connect specifications and flows. It also demonstrates how IdentityServer4 can be used to secure APIs, web applications, and mobile applications using OAuth 2.0 and OpenID Connect for authentication and authorization. Helpful links are provided for additional resources.

Uploaded by

nambir
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 21

OAuth 2.

0 and
OpenID Connect and
SSO, Oh My!
Security Simplified with IdentityServer4
http://aaronralls.com
@cajunAA
What will you learn today?

• An overview of OAuth 2.0 and OpenID Connect


protocols.
• How IdentityServer4 can be used to secure your
API’s, Web, Console/Services and Mobile
applications.
• How IdentityServer4 can be used to implement an
SSO solution
OAuth 2.0 Spec Links

OAuth 2.0 Core


• OAuth 2.0 Framework—RFC 6749
• Bearer Token Usage—RFC 6750
• Threat Model and Security Considerations—RFC 6819
OAuth 2.0 Extensions
• JSON Web Token—RFC 7519
• OAuth Assertions Framework—RFC 7521
• SAML2 Bearer Assertion—RFC 7522, for integrating with existing identity systems
• JWT Bearer Assertion—RFC 7523, for integrating with existing identity
OpenID Connect Spec Links

OpenID Connect
• Core 1.0
• Discovery
Authorization vs. Authentication
OAuth 2.0 (Authorization)

Authorization Server Resource Server Resource Owner Client

IdentityServer4 API Business Console App

Azure AD End User MVC App

OWIN SPA

Okta Mobile App

Auth0.com
OAuth 2.0 (Authorization)

Authorization Server Resource Server Resource Owner Client

IdentityServer4 API Business Console App


OAuth 2.0 Code Flow

Front Channel
(Browser)

Back Channel
(Web Server to Auth Server)
OAuth 2.0 Implicit Flow

Front Channel
(Browser - SPA)
OAuth 2.0 Access Tokens

Reference

Self contained – JWT


- JWT.IO
OAuth 2.0 Authorization Grant
Type: Client Credentials

IdentityServer4 Access Client


Token Cred.
Console App
API

JSON
DEMO 1
Client Credentials
Console App/Windows Service
accessing a secured API
OAuth 2.0 Authorization Grant
Types cont..

Authorization Code
(with or without PKCE)

Implicit

Resource Owner Password Credentials


OpenID Connect: Authentication
Flows

Authorization Authorization code


code With PKE
Implicit Hybrid*
Server Side Mobile App SPA Server Side
Mobile App
Authentication & Authorization

User Info
OpenID Connect
End Session

Discovery
Token
OAuth
Authorization
Authentication
IdentityServer4
Login/Logout

User Info
OpenID Connect
End Session

Discovery
Token
OAuth
Authorization
DEMO 2
MVC Web Application Authentication &
Authorization
Helpful links
• OAuth 2.0 Protocol Detailed Walkthrough
• OpenID Connect Flows
• OKTA - SaaS
• Explicit Logout from IdentityServer4
• Using existing DB with IdentityServer4
• Why not use OAuth 2.0 Resource Owner Password Grant Type
• https://github.com/IdentityServer/IdentityServer4/tree/master/sa
mples/Quickstarts
• https://www.scottbrady91.com/Identity-Server/Encrypting-
Identity-Tokens-in-IdentityServer4
Helpful links
SPA Web Application Authentication &
Authorization
https://docs.microsoft.com/en-
us/aspnet/core/security/authentication/identit
y-api-authorization?view=aspnetcore-3.0
Q & A
Twitter :: @cajunAA
Instagram :: double_a_ralls
Stackoverflow :: aaronR
Email :: [email protected]
Blog :: https://arkeytek.com

Facebook.com/aaron.ralls.9
http://aaronralls.com
Github.com/aaronRalls
Where to get this presentation
and the resources?
• IdentityServer4 Demos 1 & 2
• IdentityServer4 Demo 3
• OIDC JavaScript client
• OpenID Connect Implementations
• iOS OAuth 2.0 & OpenID Connect example
• Xamarin example
• OAuth 2.0 --rfc6749
• OpenID Connect

You might also like