mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-06 22:32:16 +00:00
docs: Update basic-auth.mdx - add syntax highlighting to code blocks (#6403)
Signed-off-by: jessebot <[email protected]> Co-authored-by: Fabi <[email protected]>
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user