Skip to content

Instantly share code, notes, and snippets.

@magwas
Created April 9, 2019 10:56
Show Gist options
  • Save magwas/e6e7fa77caa43153530d973b774e3f53 to your computer and use it in GitHub Desktop.
Save magwas/e6e7fa77caa43153530d973b774e3f53 to your computer and use it in GitHub Desktop.
auth0 config
in github I created a 'github application', with user authorization callback url as https://kode-konveyor.eu.auth0.com/login/callback
in auth0 I have created a 'regular web application', and enabled github.
relevant apache configuration:
DocumentRoot /var/www/repo
OIDCProviderMetadataURL https://kode-konveyor.eu.auth0.com/.well-known/openid-configuration
OIDCClientID Iv1.e37ead34f234dcfe
OIDCClientSecret '<the auth0 client secret>'
OIDCScope "openid name email"
OIDCRedirectURI https://repo.kodekonveyor.com/auth/callback
OIDCCryptoPassphrase <passwordToEncryptTheSessionInformationOnTheCookie>
<Directory /var/www/repo>
DirectoryIndex off
RewriteEngine Off
AllowOverride None
AuthType openid-connect
Require valid-user
LogLevel debug
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment