commentoplusplus
commentoplusplus copied to clipboard
Option to override Github URL for Github Enterprise SSO compatiblity
Can you add an option to override the default Github Oauth2 default endpoint? I would like to authenticate Commento users with a Github Enterprise compatible IDP but I need Commento to point to a custom domain: https://goauthentik.io/docs/providers/oauth2/#github-compatibility
This means configuring three variables instead of two:
COMMENTO_GITHUB_URL=https://sso.example.org/
COMMENTO_GITHUB_KEY=YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
COMMENTO_GITHUB_SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
The endpoints would remain the same, but from https://sso.example.org instead of https://github.com:
Endpoint | URL |
---|---|
Authorization | /login/oauth/authorize |
Token | /login/oauth/access_token |
User Info | /user |
User Teams Info | /user/teams |
Authentik looks like a really cool project to save time bootstrapping new websites etc! I will check it out for some other projects I have in mind :)
This is easy enough to do, will add support for this shortly.