docs: Update basic-auth.mdx - add syntax highlighting to code blocks (#6403)

Signed-off-by: jessebot <jessebot@linux.com>
Co-authored-by: Fabi <fabienne@zitadel.com>
This commit is contained in:
JesseBot
2023-08-21 15:31:36 +02:00
committed by GitHub
parent e701e05d23
commit 2de7c1c607

View File

@@ -75,7 +75,7 @@ Authorization: "Basic " + base64( formUrlEncode(client_id) + ":" + formUrlEncode
The request from the API to the introspection endpoint should be in the following format:
```
```bash
curl --request POST \
--url {your_domain}/oauth/v2/introspect \
--header 'Content-Type: application/x-www-form-urlencoded' \
@@ -85,7 +85,7 @@ curl --request POST \
Here's an example of how this is done in Python code:
```
```python
def introspect_token(self, token_string):
url = ZITADEL_INTROSPECTION_URL
data = {'token': token_string, 'token_type_hint': 'access_token', 'scope': 'openid'}