Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,20 @@ echo tutorial-dckr-site-0000-xpresswebapp:tutorial-dckr-site-0000-clientsecret |
```
dHV0b3JpYWwtZGNrci1zaXRlLTAwMDAteHByZXNzd2ViYXBwOnR1dG9yaWFsLWRja3Itc2l0ZS0wMDAwLWNsaWVudHNlY3JldAo=
```
> **Warning**
> linux may generate the 2nd last char as 'o', which should be an '=' so replace it. or use the following Python script
>
```authorizationHeader.py
import base64

client_id = "tutorial-dckr-site-0000-xpresswebapp"
client_secret = "tutorial-dckr-site-0000-clientsecret"

concatenated_string = f"{client_id}:{client_secret}"
base64_auth_code = base64.b64encode(concatenated_string.encode()).decode()

print("Base64-encoded authentication code:", base64_auth_code)
```

All four major grant flows can be demonstrated within the tutorial application, the actual flow to pick will depend on
your own use case.
Expand Down