Help Center

Single Sign-On From Your Own App

A developer guide to signing artists into your portal with a signed JWT, verified against your public keys.

DistroVibe TeamLast updated on October 26, 2026

With single sign-on, artists who are signed in to your own app can open your portal without a second password. Your app signs a short-lived token, and your portal checks it against your public keys. No shared secret is ever exchanged.

Single sign-on is an add-on. Once it's active on your account, set it up under White-label → Sign-in (SSO) in your partner console.

How it works

  1. An artist selects a link such as "Distribution" in your app.
  2. Your backend creates a signed JWT for that artist.
  3. Your app sends the token to your portal with a form POST.
  4. The portal checks the token, signs the artist in, and creates their account on the first visit.

Signing keys

  • Sign tokens with an asymmetric key: EdDSA (Ed25519) or RS256.
  • Publish your public keys at a JWKS URL. If you use Auth0, Clerk, Supabase, Firebase, Cognito, Keycloak or another OpenID provider, your keys are usually found automatically from your issuer.
  • Shared-secret signing (HS256) is not supported.
  • To rotate keys, publish the new key in your JWKS with its own kid; the portal picks it up automatically.

The token

Claim Required Notes
iss Yes Your issuer, exactly as entered in the console
aud Yes The audience shown in your console, unique to your portal
sub Yes Your user ID. Accounts are linked by this value, never by email
iat, exp Yes The token can be valid for 5 minutes at most
nonce Yes A random value; each nonce can be used once
user.email Yes The artist's email
user.email_verified Yes Must be true
user.full_name No Shown on the artist's account
user.plan No Puts the artist on the package with the matching SSO plan key
artist.name, artist.legal_name, artist.country, artist.genre, artist.spotify_url, artist.apple_music_url, artist.instagram_url No Used to set up the artist's first profile

Example payload:

{
  "iss": "https://auth.yourbrand.com",
  "aud": "dv-portal-yourbrand",
  "sub": "user_8f2c1a",
  "iat": 1792900000,
  "exp": 1792900300,
  "nonce": "b7f3e0c2a91d4e6f",
  "user": { "email": "maya@example.com", "email_verified": true, "full_name": "Maya Stone", "plan": "pro" },
  "artist": { "name": "Maya Stone", "country": "GB", "genre": "Pop" }
}

Sending the token

Post the token as a form to https://<your portal domain>/api/portal/sso, with the field token and, optionally, next for the page to open after sign-in. Don't put the token in a URL; links end up in logs and browser history.

<form method="POST" action="https://artists.yourbrand.com/api/portal/sso">
  <input type="hidden" name="token" value="eyJhbGciOiJFZERTQSIs..." />
  <input type="hidden" name="next" value="/releases" />
</form>
<script>document.forms[0].submit()</script>

Setting it up in the console

  1. Enter your issuer and select Find my keys, or enter your JWKS URL yourself.
  2. Copy the audience shown in the console into your token code.
  3. Paste a real token from your app into the test. The console checks it step by step and tells you exactly what to fix.
  4. Once a token passes the test, switch single sign-on on.

If you later change the issuer or JWKS URL, single sign-on switches off until a new token passes the test. The console shows recent sign-ins and the reason for the last refused one.

Identity verification

Artists who sign in with single sign-on still verify their identity with us before their first release is delivered. The details you send only fill in their account.

Need help?

Open a support ticket with the reason shown under Last refused sign-in in your console. Never send us a private key.

Still need help?

Can't find what you're looking for? Our support team is one message away. Open a ticket from your dashboard or email us.