mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 08:37:32 +00:00
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:
@@ -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:
|
The request from the API to the introspection endpoint should be in the following format:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
curl --request POST \
|
curl --request POST \
|
||||||
--url {your_domain}/oauth/v2/introspect \
|
--url {your_domain}/oauth/v2/introspect \
|
||||||
--header 'Content-Type: application/x-www-form-urlencoded' \
|
--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:
|
Here's an example of how this is done in Python code:
|
||||||
|
|
||||||
```
|
```python
|
||||||
def introspect_token(self, token_string):
|
def introspect_token(self, token_string):
|
||||||
url = ZITADEL_INTROSPECTION_URL
|
url = ZITADEL_INTROSPECTION_URL
|
||||||
data = {'token': token_string, 'token_type_hint': 'access_token', 'scope': 'openid'}
|
data = {'token': token_string, 'token_type_hint': 'access_token', 'scope': 'openid'}
|
||||||
|
Reference in New Issue
Block a user