The GitHub Authentication Integration have to be configured on your CDS by a CDS Administrator.
This integration allows you to authenticate user with the GitHub Authentication.
As a CDS Administrator
Go to https://github.com/settings/developers and Register a new OAuth application. Set :
application name
, example: CDS company name
Homepage URL
: http(s)://<your-cds-webui>
(with a local webui, it will be: http://localhost:8080
)Authorization callback URL
: http(s)://<your-cds-ui>/auth/callback/github#
Example for a local configuration:
http://localhost:8080
http://localhost:8080/auth/callback/github#
Click on Register Application, then on the next page, GitHub give you a Client ID and a Client Secret
Edit the toml file:
[api.auth.github]
clientId
and clientSecret
enabled = true
signupDisabled = true
[api.auth.github]
#######
# GitHub API URL
apiUrl = "https://api.github.com"
#######
# GitHub OAuth Client ID
clientId = "xxxx"
# GitHub OAuth Client Secret
clientSecret = "xxxx"
enabled = true
signupDisabled = false
#######
# GitHub URL
url = "https://github.com"