feat: allow external auth providers to expose extra metadata (#10157)

This commit is contained in:
Kyle Carberry
2023-10-09 23:02:16 -05:00
committed by GitHub
parent 3eb9a43190
commit 9c098b218f
12 changed files with 144 additions and 30 deletions
+9 -5
View File
@@ -26,14 +26,18 @@ else
echo $OUTPUT
fi
- Obtain an extra property of an access token for additional metadata.:
$ coder external-auth access-token slack --extra "authed_user.id"
```
## Options
### --s
### --extra
| | |
| ---- | ----------------- |
| Type | <code>bool</code> |
| | |
| ---- | ------------------- |
| Type | <code>string</code> |
Do not print the URL or access token.
Extract a field from the "extra" properties of the OAuth token.