Skip to main content
Portal SSO lets your own portal or intranet sign learners into Juno without an identity provider. Your backend signs a short-lived token with a secret you generate in Juno’s admin, your page posts it to Juno, and the learner lands in Juno already signed in — full-tab or inside an iframe.
If your organization has a SAML 2.0 identity provider (Okta, Entra ID, Google Workspace…), use SSO & SAML instead. Portal SSO is for organizations without an IdP.

How it works

  1. A learner is signed into your portal
  2. Your backend signs a JSON Web Token (JWT) containing the learner’s email
  3. Your page auto-submits that token to Juno with a hidden form (POST)
  4. Juno verifies the token, creates or updates the learner, and redirects them into Juno — signed in
New Juno users are created as Learners, and any role claim in the token is ignored. An existing Juno user is signed in as themselves, with whatever role they already have.
Your signing secret is effectively a master credential: anyone who can sign a token can authenticate as any user in your organization — including an existing admin, at that account’s role. Keep the secret server-side only, and rotate it immediately if it’s ever exposed.

How learners are matched

Juno looks for an existing learner in this order:
  1. external_id: the learner already linked to that id. The token’s email is ignored and no one’s email is changed.
  2. email (case-insensitive): the learner with that email. If they aren’t linked to an external_id yet, they’re linked to the token’s id from now on. If they’re already linked to a different external_id, the hand-off is rejected with identity_conflict.
  3. No match: a new Learner is created.
Juno trusts every claim you sign. Only sign an email your users can’t change themselves (verified, or managed by an admin or your HR system). If users can edit their own email, someone could enter a colleague’s address and be signed in as them on their first hand-off. Always send external_id too, so learners stay linked to your user id after their first sign-in.

Setup

1

Ask Juno to turn on Portal SSO

Portal SSO is behind a feature flag. Ask your Juno customer success manager to enable it for your organization and to give you your tenant ID (the token aud). Once enabled, a Portal SSO section appears under Admin → Security → Developer Settings for admins, people with admin access in the Platform area, and IT admins — that’s the only step that needs Juno.
2

Generate a signing secret (self-serve)

In the Portal SSO section, click Generate secret and copy the secret and its key id (kid) — the secret is shown only once, so store it in your backend’s secret manager (never in browser code). Then flip Enable Portal SSO on. You manage secrets yourself here — generate, rotate, and delete.
3

Sign tokens in your backend

Use a backend signing example below. Tokens must be signed server-side; the secret must never reach the browser.
4

Add the hand-off snippet to your portal

Use a frontend snippet below — React, plain JS, or server-rendered HTML; new tab or embedded iframe.
Portal SSO in Developer Settings, with the switch, a signing secret, and the integration details

Token contract

Tokens are HS256-signed JWTs. Juno enforces every rule below and rejects the hand-off otherwise. Set the kid header to the key id you received. Any role claim is ignored — new users are created as Learners (an existing user keeps their current role; see the security note above). From attributes, Juno only ever fills the five profile fields and your custom attributes; nothing else (roles, permissions, ids) is ever read from it.

Map attributes

If your portal uses its own key names, or you want to fill your custom attributes, map them under Admin → Security → Developer Settings → Portal SSO → Profile attributes. Each row pairs a Juno field with the key in your token’s attributes object, for example department ← dept, or Cost centre ← cost_centre. Click Save attributes when done.
  • A profile field without a row is still read from the key with its own name, so existing integrations keep working.
  • Custom attributes of type Text, Number, Yes/No and Date can be mapped. User attributes can’t.
  • The same rows apply to the attributes of the in-app launcher’s sign-in tokens.
Profile attributes in Portal SSO, mapping dept to Department and two token keys to custom attributes Juno converts each value to the type of the field it fills: A value Juno can’t convert is skipped and the learner is still signed in. A missing or empty value never clears what’s already saved, and an existing learner is only updated when a value changed.
Example attributes

Scaffold with an AI agent

In a hurry? Paste this into your coding assistant (Cursor, Claude, Copilot…) to scaffold the integration, then fill in the values from Admin → Security → Developer Settings → Portal SSO.
Prompt

Backend: sign the token

Sign server-side with the secret from Juno. Generate a fresh token for every hand-off — tokens are single-use and expire within minutes.

Frontend: hand off to Juno

Your frontend fetches the signed token from your backend, then POSTs it to https://api.the-juno.com/api/v1/sso/portal. Set the form’s target to _blank for a new tab, or to an <iframe name> to embed Juno in your page. The optional junoRedirectUrl deep-links the learner (a path like /unit/123, or an absolute URL on your Juno origin).
The token is minted by your backend (which holds the secret) — never sign in the browser. And never put the token in a URL or query string: Juno rejects it, and tokens in URLs leak through logs and history. Always POST it in the form body.

On your custom domain

If your workspace uses its own address (a custom domain such as learn.acme.com), set junoRedirectUrl to a page on it, for example https://learn.acme.com/unit/123. Juno brings the learner back to that address, signed in, on that page. The sign-in crosses over with a one-time code that works once, for a short time. No sign-in token appears in any URL.
  • A page on any other address lands on your Juno address, as before.
  • If your page has a Content Security Policy with form-action, allow your custom domain as well as https://api.the-juno.com. Browsers apply form-action to the redirect that follows the form post.
  • Errors still land on your Juno address, with the error codes below.

Error codes

Failed hand-offs redirect to the Juno app root with kind=error&code=…&message=…:

Secret rotation

Two secrets can be active at once, each with its own kid — so you rotate with zero downtime, all self-serve in the Portal SSO section:
  1. Click Generate secret to add a second secret (you’ll now have two active)
  2. Switch your backend to the new secret and kid
  3. Delete the old secret
Last modified on November 25, 2026