-
Notifications
You must be signed in to change notification settings - Fork 60
Expand file tree
/
Copy pathsso-github.xml
More file actions
24 lines (22 loc) · 1.12 KB
/
sso-github.xml
File metadata and controls
24 lines (22 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="UTF-8"?>
<server>
<!-- defaults from the server metatype.xml are declared as variables here
If nothing is passed in elsewhere, the defaults will prevail.
Required parameters have no defaults, so are not defined here.
The required parameters are
clientId, clientSecret
-->
<variable name="SEC_SSO_MAPTOUSERREGISTRY" defaultValue="false"/>
<variable name="SEC_SSO_GITHUB_HOSTNAME" defaultValue="github.com" />
<variable name="SEC_SSO_REDIRECTTORPHOSTANDPORT" defaultValue="" />
<githubLogin
clientId="${SEC_SSO_GITHUB_CLIENTID}"
clientSecret="${SEC_SSO_GITHUB_CLIENTSECRET}"
redirectToRPHostAndPort="${SEC_SSO_REDIRECTTORPHOSTANDPORT}"
mapToUserRegistry="${SEC_SSO_MAPTOUSERREGISTRY}"
tokenEndpoint="https://${SEC_SSO_GITHUB_HOSTNAME}/login/oauth/access_token"
authorizationEndpoint="https://${SEC_SSO_GITHUB_HOSTNAME}/login/oauth/authorize"
userApi="https://api.${SEC_SSO_GITHUB_HOSTNAME}/user/emails"
website="https://${SEC_SSO_GITHUB_HOSTNAME}"
></githubLogin>
</server>