1. Create a workspace
Sign in to the console at accord.nubisco.io with a Nubisco account. A code sent to your email address is enough to create one.
Open Workspaces, then Create a workspace, and give:
- Company or project name
- Slug: lower case letters, digits and hyphens. Your apps' names start with it, and it never changes. Some slugs are reserved.
- What are you building?: a line or two for the people approving it.
You become the workspace's owner. It starts with one project, a production environment and the Free plan.
Workspace owners and admins hold their apps' secrets, so Accord asks them for a second factor: a passkey or an authenticator app.
2. Wait for approval
Accord is in early access. A new workspace waits for Nubisco to approve it. Until then you can look around, but nothing in it can sign anybody in.
| Status | What it means |
|---|---|
| Pending | Waiting for approval. You can see it, its plan and its environment. |
| Active | Approved. Register apps, add environments, create organizations. |
| Declined | Not approved. |
| Suspended | Paused. Nothing is issued. Your people, apps and organizations are kept. |
3. Add a project and environments
Your workspace starts with one project. Add another with New project when you build a second product that does not share sign-in with the first. Each new project starts with a production environment.
Add a staging or development environment to a project with New environment. Each environment has its own people, its own issuer and its own signing keys. The console shows each environment's issuer with a copy button:
https://auth.nubisco.io/e/env_0123456789abcdef01234. Register an app
Under Apps, choose Register app and give:
- Name
- Slug: your app signs in as
<workspace slug>-<slug>. - Environment: the environment the app belongs to. Register the app again for each environment.
- Redirect URIs: where a sign-in returns to. One per line,
https, orhttponlocalhost. - Who may sign in: members of organizations that use it, or anyone with an Accord account in that environment. See Who may sign in.
Accord shows the client ID, the client secret and a webhook secret once. Copy them now. Accord keeps only a hash of the client secret. If you lose it, open the app and rotate it.
5. Sign people in
Give your app's OpenID Connect library three things:
| Setting | Value |
|---|---|
| Issuer | https://auth.nubisco.io/e/<environment id> |
| Client ID | from step 4 |
| Client secret | from step 4, on your server only |
The library reads everything else from the discovery document. Ask for the openid scope, plus profile and email if you want them, and send a PKCE challenge.
People sign in on your environment's own sign-in page, with a code sent to their email address (then a second step if they have one), or with a passkey (see Signing in). They come back to your redirect address with an authorization code, which your server exchanges for an ID token and an access token. Before you trust a token, check its iss, its aud and its signature. See OpenID Connect and Tokens and claims.
If you chose Members of organizations that use it, nobody gets in until they belong to an organization that uses the app. Create one and invite them: see Organizations.
Next
- OpenID Connect: every endpoint and parameter.
- Machine API and roles: your app's own token, and declaring its roles.
- Plans and limits