Settings

Settings

Connect your app to cyberpod

Your users sign into cyberpod through our identity provider. To let them sign into your app with the same account, use the values below. Drop them into your config and ship.

IdP values

Issuer
https://keycloak.cyberpod.cloud/realms/idp-application
Discovery URL
https://keycloak.cyberpod.cloud/realms/idp-application/.well-known/openid-configuration
JWKS URI
https://keycloak.cyberpod.cloud/realms/idp-application/protocol/openid-connect/certs
Client ID
idp-application
Scopes
openid roles offline_access address web-origins phone email basic organization microprofile-jwt profile acr
Default OIDC scopes — add others if you need additional claims.
Client secret
(ask the platform admin)
Never embed the secret in code or commit it. Read it from your runtime env (IDP_CLIENT_SECRET).

Copy into your app

// Install:  pnpm add '@zysec-ai/cpod-sdk'
import { CpodClient } from "@zysec-ai/cpod-sdk";

const client = new CpodClient({
  baseUrl: "https://cpod-backend.cyberpod.cloud",
  auth: {
    oidc: {
      issuer:       "https://keycloak.cyberpod.cloud/realms/idp-application",
      clientId:     "idp-application",
      clientSecret: process.env.IDP_CLIENT_SECRET!,  // never inline
      scopes:       ["openid","roles","offline_access","address","web-origins","phone","email","basic","organization","microprofile-jwt","profile","acr"],
    },
  },
});

// Start a login (server-side) — returns a URL to redirect the user to.
const { authorizeUrl, state } = await client.auth.oidc.start({
  redirectUri: "https://your-app.example.com/auth/callback",
});