GitHub OAuth
Sign-in with GitHub via the github Spring profile. Backed by Spring's standard spring.security.oauth2.client.registration.github.* machinery configured in application-github.properties.
Register a GitHub OAuth App
- GitHub -> Settings -> Developer settings -> OAuth Apps -> New OAuth App.
- Homepage URL:
https://dirigible.example.com. - Authorization callback URL:
https://dirigible.example.com/login/oauth2/code/github. - Copy the Client ID and generate a Client Secret.
Enable the profile
bash
SPRING_PROFILES_ACTIVE=github
DIRIGIBLE_GITHUB_CLIENT_ID=<client-id>
DIRIGIBLE_GITHUB_CLIENT_SECRET=<client-secret>
DIRIGIBLE_GITHUB_SCOPE=read:user,user:emailNote: the canonical variables are DIRIGIBLE_GITHUB_*, not the generic DIRIGIBLE_OAUTH_* that older documentation referenced - those are obsolete.
Role mapping
The default role mapping grants every authenticated GitHub user the DEVELOPER role. For team-based access bind a *.roles artefact and apply *.access rules - see /help/develop/security-and-roles.
Client registration artefact
The same parameters can be stored declaratively as an OAuth client registration artefact so a redeploy preserves the configuration.