OAuth Installation
Install the addon with:
keel add oauthIf jwt is not installed yet, the CLI prompts to install it first. Pressing Enter accepts the default. For scripted installs, use --yes or --no-input.
Manual install:
go get github.com/slice-soft/ss-keel-oauthWhat keel add oauth generates
Section titled “What keel add oauth generates”- Adds
github.com/slice-soft/ss-keel-oauthto dependencies. - Keeps or creates the JWT provider setup.
- Creates
cmd/setup_oauth.go. - Replaces the standalone JWT placeholder in
cmd/main.gowithsetupOAuth(app, jwtProvider, appLogger). - Adds provider config keys and
.envexamples.
The generated routes use the configured prefix and expose:
GET /auth/googleGET /auth/google/callbackGET /auth/githubGET /auth/github/callbackGET /auth/gitlabGET /auth/gitlab/callback