-
Notifications
You must be signed in to change notification settings - Fork 3
/
multi-example.yaml
96 lines (79 loc) · 2.58 KB
/
multi-example.yaml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
---
# oauth section names must match [a-z][a-z0-9]+
providers:
######################################################################
# Google OpenID
- name: google
displayname: Google
url:
# These 3 URLs will be found using OpenID discovery, uncomment to override
#authorisation: https://accounts.google.com/o/oauth2/v2/auth
#token: https://oauth2.googleapis.com/token
#userinfo: https://openidconnect.googleapis.com/v1/userinfo
callback: https://OMERO.WEB.HOST/oauth/callback/google
# https://console.developers.google.com/apis/credentials
client:
id: CLIENT_ID
secret: SECRET_ID
scopes:
- openid
- https://www.googleapis.com/auth/userinfo.email
- https://www.googleapis.com/auth/userinfo.profile
openid:
# OpenID issuer, required for auto-discovery
issuer: https://accounts.google.com
# Uncomment to enable verification
#verify: true
# force to always make user click authorize
authorization:
params:
prompt: select_account
userinfo:
type: openid
user:
# OMERO user name, template must contain {sub}
name: 'google-{sub}'
email: '{email}'
firstname: '{given_name}'
lastname: '{family_name}'
######################################################################
# GitHub
- name: github
displayname: GitHub
url:
authorisation: https://github.com/login/oauth/authorize
token: https://github.com/login/oauth/access_token
userinfo: https://api.github.com/user
callback: https://OMERO.WEB.HOST/oauth/callback/github
# Create an OAuth app: https://github.com/settings/developers
client:
id: CLIENT_ID
secret: SECRET_ID
scopes:
# Needs to exactly match the string returned by GitHub
- 'read:user,user:email'
userinfo:
type: github
user:
# OMERO user name, template must contain {login}
name: 'github-{login}'
######################################################################
# ORCID
- name: orcid
displayname: ORCID
url:
authorisation: https://orcid.org/oauth/authorize
token: https://orcid.org/oauth/token
userinfo: https://pub.orcid.org/v2.1/{orcid}
callback: https://OMERO.WEB.HOST/oauth/callback/orcid
# https://support.orcid.org/hc/en-us/articles/360006897174
client:
id: CLIENT_ID
secret: SECRET_ID
scopes:
- /authenticate
userinfo:
type: orcid
user:
# OMERO user name, template must contain {orcid}
name: 'orcid-{orcid}'