Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Getting Started with OAuth 2.0

SAP via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Dive into a comprehensive 59-minute tutorial on OAuth 2.0, focusing on its application in SAP Business Technology Platform (BTP) environments. Begin with an introduction to OAuth 2.0 grant types, then navigate through the SAP API Business Hub to explore endpoints and required scopes. Learn to use the Cloud Foundry CLI for logging in, creating service instances, and generating service keys. Develop a script to request and obtain tokens, examining their content and expiration details. Practice making API calls using the acquired token, and conclude by analyzing the token's structure using jwt-cli. Gain hands-on experience with OAuth 2.0, jq, Bash, curl, SAP BTP, Cloud Foundry, and JWT throughout this practical, step-by-step guide.

Syllabus

Welcome and introduction
Understanding OAuth 2.0 grant types
Navigating to the endpoint on the SAP API Business Hub
Thinking about the scope required for the given endpoint
Exploring the documentation that we need to read
Looking at the service plans for the cis service, and what scopes they include
Logging in to the Cloud Foundry environment with the cf CLI
Learning how to find the API endpoint for cf programatically
Exploring the Cloud Foundry marketplace, looking for the cis service & plans
Creating a cis service instance with the central plan
Creating a service key binding from that instance and taking a first look at the data
Looking at the HTTP request and the data that we need to request a token
Writing a small script to prepare for and make the HTTP request for the token
Noting that we need to urlencode the form data
Making the call and successfully obtaining a token
Examining the token and related details that are returned type, expiry info, refresh token, scopes, etc
Getting ready to make the call to the endpoint
Making the call, and realising it was waiting for input on STDIN
Examining the successful output
Thinking about the token's lifetime
Examining the content of the otherwise opaque access token with jwt-cli

Taught by

SAP Developers

Reviews

Start your review of Getting Started with OAuth 2.0

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.