Skip to content

Commit b238dcd

Browse files
authored
docs: Update GraqhQL query in external OAuth authentication docs (#15493)
1 parent 0ef4419 commit b238dcd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/authentication/external-oauth-providers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Once configured, include your JWT token in the Authorization header when making
170170
curl -H "Authorization: Bearer YOUR_JWT_TOKEN" \
171171
-H "Content-Type: application/json" \
172172
https://your-datahub.com/api/graphql \
173-
-d '{"query": "{ corpUsers { total } }"}'
173+
-d '{"query": "{ me { corpUser { urn username }}}"}'
174174
```
175175

176176
For Python applications:
@@ -186,7 +186,7 @@ headers = {
186186
response = requests.post(
187187
'https://your-datahub.com/api/graphql',
188188
headers=headers,
189-
json={'query': '{ corpUsers { total } }'}
189+
json={'query': '{ me { corpUser { urn username }}}'}
190190
)
191191
```
192192

0 commit comments

Comments
 (0)