Navigating to the endpoint on the SAP API Business Hub
4
Thinking about the scope required for the given endpoint
5
Exploring the documentation that we need to read
6
Looking at the service plans for the cis service, and what scopes they include
7
Logging in to the Cloud Foundry environment with the cf CLI
8
Learning how to find the API endpoint for cf programatically
9
Exploring the Cloud Foundry marketplace, looking for the cis service & plans
10
Creating a cis service instance with the central plan
11
Creating a service key binding from that instance and taking a first look at the data
12
Looking at the HTTP request and the data that we need to request a token
13
Writing a small script to prepare for and make the HTTP request for the token
14
Noting that we need to urlencode the form data
15
Making the call and successfully obtaining a token
16
Examining the token and related details that are returned type, expiry info, refresh token, scopes, etc
17
Getting ready to make the call to the endpoint
18
Making the call, and realising it was waiting for input on STDIN
19
Examining the successful output
20
Thinking about the token's lifetime
21
Examining the content of the otherwise opaque access token with jwt-cli
Description:
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.