Skip to content

oauth2 capability

oauth2 adds OAuth2 flow support to your Go service, handling token exchange and callback routing for both client credentials and authorization code flows.

  • OAuth2 provider integration
  • Token exchange
  • Callback handler
  • Session management

Use oauth2 when your service needs to act as an OAuth2 client (logging users in via Google, GitHub, or an identity provider) or serve as an authorization server for machine-to-machine flows.

Requires: http-api

Suggests: auth-jwt

Terminal window
verikt new my-service --language go --cap http-api,oauth2
# or add to an existing service:
verikt add oauth2

auth-jwt

JWT validation for tokens issued after OAuth2 exchange.

redis

Session storage for OAuth2 state and tokens.

cors

CORS headers for browser-based OAuth2 flows.