forked from rustdesk/rustdesk-server
-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
oauth2.toml
49 lines (45 loc) · 1.55 KB
/
oauth2.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# [[provider]]
# provider = "Github"
# authorization_url = "https://github.com/login/oauth/authorize"
# token_exchange_url = "https://github.com/login/oauth/access_token"
# app_id = "your_github_app_id"
# app_secret = "your_github_app_secret"
# scope = "read:user"
# op_auth_string = "oidc/github"
# op = "github"
# [[provider]]
# provider = "Gitlab"
# authorization_url = "https://gitlab.com/oauth/authorize"
# token_exchange_url = "https://gitlab.com/oauth/token"
# app_id = "your_gitlab_app_id"
# app_secret = "your_gitlab_app_secret"
# scope = "read_user"
# op_auth_string = "oidc/gitlab"
# op = "gitlab"
# [[provider]]
# provider = "Google"
# authorization_url = "https://accounts.google.com/o/oauth2/v2/auth"
# token_exchange_url = "https://oauth2.googleapis.com/token"
# app_id = "your_google_app_id"
# app_secret = "your_google_app_secret"
# scope = "openid email profile"
# op_auth_string = "oidc/google"
# op = "google"
# [[provider]]
# provider = "Facebook"
# authorization_url = "https://www.facebook.com/v13.0/dialog/oauth"
# token_exchange_url = "https://graph.facebook.com/v13.0/oauth/access_token"
# app_id = "your_facebook_app_id"
# app_secret = "your_facebook_app_secret"
# scope = "public_profile"
# op_auth_string = "oidc/facebook"
# op = "facebook"
[[provider]]
provider = "Custom"
authorization_url = "https://dex-mock-server.example.org/dex/auth"
token_exchange_url = "https://dex-mock-server.example.org/dex/token"
app_id = "sctgdesk-api-server"
app_secret = "SXNVYj436762BjKJsJXdXpkbHFYbU0="
op_auth_string = "oidc/dex"
op = "dex"
scope = "openid email profile"