
Explore OAuth 2.0 and API security with an experienced API architect who makes complex security approachable for mobile and cloud developers.
Learn to securely access the APIs of Google, Facebook, LinkedIn, and PayPal by using OAuth 2.0, covering client registration, authorization code flow, token retrieval, and resource access via OAuth worksheets.
Explore OAuth 2.0 for third-party access by illustrating a resource owner, resources like emails, and a resource server such as Gmail, with a third-party app requesting secure access.
Understand the password anti-pattern where a third-party app gains direct access to a user’s password, risking Gmail, Drive, and Wallet, and learn why secure authorization prevents password transfer.
Explore how the email scheduling app requests access via the OAuth server, authenticates the resource owner with a login screen, issues a token, and grants access through the resource server.
OAuth 2.0 provides a standard for delegating access with tokens instead of passwords, enabling fine-grained, time-limited access to specific data for apps.
Explore the key OAuth 2.0 components, including actors, auth endpoints, and tokens, by examining inputs, outputs, and the contents of codes and tokens within a typical OAuth solution.
Identify the four OAuth actors—provider, resource provider, resource owner, and client—and their roles within the auth server, consent server, and token management.
Learn how the oauth flow uses resource owner, client, auth server, and resource server, with login, consent, endpoints, tokens, and grants securing access.
Learn OAuth 2.0 endpoints: authorization endpoint, token endpoint, redirect endpoint, and resource endpoint, with input and output parameters, grant types, and bearer-protected resources.
Understand how OAuth tokens grant access to resources, using a Paris subway ticket analogy: a valid token lets its holder access, while a valid-but-lost token can be used by others.
Explore OAuth tokens and credentials, including access and refresh tokens, authorization codes, and client credentials, and learn how to securely store and transport them using TLS.
Trace how a third-party app requests access to emails via the authorization endpoint, including the state parameter, and how the auth server issues a token for the resource server.
Explore the four OAuth flows, starting with the secure authorization code flow and its three-legged default approach. Learn how actors, endpoints, and tokens interact through grant types and requests.
Explains the authorization code flow, or three legged auth, where the auth server authenticates the resource owner and the client via client ID, client secret, and http basic.
Learn the authorization code grant workflow at the authorization endpoint, including obtaining a code, exchanging it for a token, and the roles of resource owner, client, and auth server.
Describe how the authorization code is exchanged at the token endpoint to obtain an access token, refresh token, and expiration, then use the bearer token to access protected resources.
Use the refresh flow to renew an access token by sending the refresh token to the token endpoint only. Receive a new access and refresh token without resource owner authentication.
Refresh tokens extend access by exchanging a valid refresh token at the token endpoint for a new access token (and often a new refresh token) in the authorization code flow.
Explore the OAuth 2.0 implicit flow, which returns an access token directly from the authorization endpoint, without a token endpoint or refresh tokens, suitable for client-side JavaScript and mobile apps.
Explain the resource owner password credentials flow, where the client uses the user's credentials to obtain tokens. Discuss trust-based use cases, security risks, and token handling with refresh tokens.
Discover how PKCE strengthens the authorization code grant for public clients by preventing authorization code interception attacks. Implement PKCE in every authorization code flow to improve API security.
Demonstrates how an unauthorized client hijacks the OAuth 2.0 flow by intercepting redirect and exchanging the authorization code for an access token, enabling the attacker to impersonate resource owner.
Explore how PKCE strengthens OAuth 2.0 by using a random code verifier and a derived code challenge, hashed with SHA-256 and base64 URL encoding to thwart attacks.
Recent Updates
2023-02-06 More than 17420 satisfied students
2023-01-07 NEW Added 4 new videos on Proof Key for Code Exchange (PKCE)
2023-01-06 More than 17240 satisfied students
2023-01-06 Answered students' questions in the Q&A
2022-12-30 More than 17200 satisfied students
2022-12-29 Answered 4 questions from my students in the Q&A
2022-12-20 Answered 19 questions from my students in the Q&A
This course is for you...
...if you want to improve your market value as a Software Engineer and Security Expert. Imagine what could happen to your professional career if you could add API Security and OAuth skills to your CV!
API Security experts and engineers who understand OAuth are in HIGH DEMAND, as companies expand their digital business. Plenty of opportunities are waiting for anyone who has the right skills.
Do you want to write best-selling iPhone and Android apps?
The most popular mobile apps integrate with popular social APIs of Google, LinkedIn, Facebook, Paypal, and many more. If this is a well-known fact, why do app developers not just do it?
Many app developers are afraid of complicated OAuth integrations. Security is in fact the biggest hurdle for most mobile app developers.
With the knowledge gained in this course, you can use the secret of the best app developers out there and finally integrate your app with social APIs.
Do you want to start out on your own, as an entrepreneur, consultant, or freelancer?
Knowing API Security and OAuth allows you to realize the big vision of your company in the field of mobile apps, cloud apps, and web APIs, such as Google, Paypal, and LinkedIn.
Do you want to build exciting solutions with next-generation technology?
Whether you are a web developer, mobile developer, or API developer, architect, or embedded developer for the Internet of Things, today you need to know OAuth to build state-of-the-art solutions.
What does this course offer?
This course offers an introduction to API Security with OAuth 2.0. In 3 hours you will gain an overview of the capabilities of OAuth. You will learn the core concepts of OAuth. You will get to know all 4 OAuth flows that are used in cloud solutions and mobile apps.
If you have tried to read the official OAuth specification, you may get the impression that OAuth is complex. This course explains OAuth in simple terms. The four OAuth flows are visualized graphically using sequence diagrams. The diagrams are then animated so you get to know the interactions step by step and see the big picture of the various OAuth interactions. This high-level overview is complemented with a rich set of example requests and responses and an explanation of the technical details.
Who should take this course?
Do you believe OAuth is complicated? OAuth may seem complex with flows and redirects going back and forth. This course will give you clarity by introducing the seemingly complicated material by many illustrations. These illustrations clearly show all the involved interaction parties and the messages they exchange.
Do you want to learn the OAuth concepts efficiently? This course uses many animated diagrams and sequence diagrams. A good diagram says more than 1000 words.
Do you want to use OAuth in your mobile app? If you want to access resources that are protected by OAuth, you need to get a token first, before you can access the resource. For this, you need to understand the OAuth flows and the dependencies between the steps of the flows.
Do you want to use OAuth to protect your APIs? OAuth is perfectly suited to protect your APIs. You can learn which OAuth endpoints need to be provided and which checks need to be made within the protected APIs.