Set up the product in Perminister
Set up the product in the organization that publishes the app. Keep its product ID stable; organizations that install the public product share its app client configuration while keeping their own members and grants.
Developer guide / Getting started
Perminister manages central identity and access. Consumer applications keep their own portals, sessions, data, and resource enforcement.
Keep identity shared, sessions app-specific, and resource authorization on the app backend.
Set up the product in the organization that publishes the app. Keep its product ID stable; organizations that install the public product share its app client configuration while keeping their own members and grants.
A product owner or admin creates an app client from the publisher product’s App clients page and registers its exact app origin. Include the local development port, such as http://localhost:3000. Reuse that client across organizations installing the public product. Copy the client ID and one-time secret into the app backend. The backend sends them as client_secret_basic at the OIDC token endpoint; never include the secret in browser code or logs.
Send users to Perminister's OIDC authorization-code sign-in, with state, nonce, and S256 PKCE. Validate the signed ID token, then store the opaque app-bound access token in your app's Secure, HttpOnly, SameSite cookie. The token is bound to that app.
Use the organizations and grants returned for the signed-in account. Each authorization request includes the organization, product, resource, and exact action; product membership alone does not grant an action.
Call POST /api/authorize from the backend before serving a protected operation. Load the app's own resource and enforce the decision there. For background work, use a service principal with a narrowly scoped service key.
See the API-key guide for the authorization request and the permissions guide for scope rules. Read the full application API contract for endpoint details.