mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: implement yaml parsing for external auth configs (#11268)
* chore: yaml parsing for external auth configs * Also unmarshal and check the output again
This commit is contained in:
Vendored
+22
@@ -0,0 +1,22 @@
|
||||
externalAuthProviders:
|
||||
- type: github
|
||||
client_id: client_id
|
||||
client_secret: client_secret
|
||||
id: id
|
||||
auth_url: https://example.com/auth
|
||||
token_url: https://example.com/token
|
||||
validate_url: https://example.com/validate
|
||||
app_install_url: https://example.com/install
|
||||
app_installations_url: https://example.com/installations
|
||||
no_refresh: true
|
||||
scopes:
|
||||
- user:email
|
||||
- read:org
|
||||
extra_token_keys:
|
||||
- extra
|
||||
- token
|
||||
device_flow: true
|
||||
device_code_url: https://example.com/device
|
||||
regex: ^https://example.com/.*$
|
||||
display_name: GitHub
|
||||
display_icon: /static/icons/github.svg
|
||||
Reference in New Issue
Block a user