Skip to content

Integration

To integrate Goiabada with your app, you’ll need an OAuth2/OpenID Connect client library for your platform. Most platforms provide such libraries.

When configuring your OAuth2/OpenID Connect client to work with Goiabada, you’ll typically need:

  1. Client ID and Client Secret (from Goiabada admin console)
  2. Issuer URL (normally the auth server base URL) - e.g., https://auth.example.com
  3. Authorization Endpoint - <auth-server-base-url>/auth/authorize
  4. Token Endpoint - <auth-server-base-url>/auth/token
  5. UserInfo Endpoint - <auth-server-base-url>/auth/userinfo
  6. JWKS URI - <auth-server-base-url>/.well-known/jwks.json
  7. End Session Endpoint - <auth-server-base-url>/auth/logout

Most libraries support automatic configuration via the OpenID Connect Discovery endpoint at <auth-server-base-url>/.well-known/openid-configuration.

The Goiabada GitHub repository includes sample integrations for various platforms:

A browser-based JavaScript test client using the oauth4webapi library.

A sample integration using Go. See the go-webapp example.

A React application demonstrating authentication and role (group) based authorization with token auto-refresh.