LTI 1.3
EmbayLMS is an LTI 1.3 tool provider. This lets an external learning platform (Canvas, Moodle, Blackboard, or any LTI 1.3-compliant platform) launch EmbayLMS course content directly inside its own UI. Learners click a link in the host platform and are signed straight into the EmbayLMS course player — no separate login.
These endpoints are live. LTI is configured per tenant: an admin registers each platform as an LTI tool under the tenant’s integration settings, and the platform side is registered with the values below.
EmbayLMS is also an LTI 1.3 platform: a tenant can register an external
LTI tool and place it in a course as a module, with deep linking, grade passback and
roster sync. Those endpoints live under /api/v1/lti/platform/*, are internal to the
app (not part of the public API), and are set up from the admin guide
External tools (LTI platform).
What LTI 1.3 provider mode does
- An external platform launches a specific EmbayLMS course for a learner.
- The launch carries the learner’s identity (signed by the platform). EmbayLMS validates the signature, then finds or just-in-time (JIT) provisions the user before redirecting them into the course.
- Deep Linking 2.0 lets an instructor on the host platform browse the tenant’s published courses and embed a launch link without leaving the platform.
All the endpoints live under /api/v1/lti/ on the tenant subdomain
(https://{tenant}.embaylms.com). The tenant is resolved from the request
hostname.
Endpoints
OIDC Login Initiation
GET /api/v1/lti/login
POST /api/v1/lti/loginStep 1 of the launch. The platform sends the learner here first. EmbayLMS
registers a one-time nonce and redirects the browser back to the platform’s
authorization endpoint (the target_link_uri) to obtain a signed id_token.
Required parameters (query string for GET, form-encoded for POST):
| Parameter | Description |
|---|---|
iss | The platform’s issuer identifier |
login_hint | Opaque learner identifier supplied by the platform |
target_link_uri | The platform authorization endpoint to redirect back to |
client_id | (optional) The tool’s client id, echoed back if present |
lti_message_hint | (optional) Opaque value from the platform, passed back unchanged on the redirect |
Missing any of iss, login_hint, or target_link_uri returns 400 with
{ "error": "missing_required_params" }.
The redirect requests response_type=id_token, response_mode=form_post,
scope=openid, and sets redirect_uri to the launch endpoint below.
Launch (Resource Link)
POST /api/v1/lti/launchStep 2 of the launch. The platform POSTs the signed id_token here (form
field id_token). EmbayLMS:
- Decodes the token to find the issuer (
iss) and audience (aud→ client id). - Looks up the matching LTI tool registration in the tenant by client id, and confirms the issuer matches and the tool is active.
- Verifies the JWT signature against the tool’s published JWKS.
- Validates the
nonce(single-use, replay protection). - Requires
message_typeLtiResourceLink*,version1.3.0, and a registereddeployment_id. - Finds or JIT-provisions the user (see below).
- Redirects into the bound course player. If the deployment is bound to a
course, the learner lands on
/learn/{courseId}; otherwise the catalog.
On any validation failure the learner is redirected to the login page with an
error code (e.g. SamlInvalidAssertion, SamlNotConfigured,
AccountInactive) — no internal error detail is exposed.
Launch inside the platform’s iframe
When the platform shows the launch inside its own page (Moodle Embed, Canvas
iframe placements), the browser sends the launch with Sec-Fetch-Dest: iframe.
EmbayLMS then answers in one of three ways:
- Verified, cookies kept: the 303 to the course player also sets a frame
grant: an HMAC-signed, host-bound, 8-hour cookie (
__Host-lti_frame;HttpOnly; Secure; SameSite=None; Partitioned). While the browser holds it, the learner pages (the one-time sign-in exchange/login?samlExchange=…, never the bare sign-in form; the course player at/learn/{courseId}with its quiz-attempt and survey pages; the learner home, My learning, the catalog, achievements, transcript, calendar) sendContent-Security-Policy: frame-ancestors 'self'plus the platform’s origins: the registration’s issuer and OIDC login URL, and thetool_platform.urlandlaunch_presentation.return_urlof the verified token. https only, at most four, never*. Every other page keepsframe-ancestors 'self'. The sign-in cookies are partitioned for that context only. - Verified, but the browser kept no cookie (Safari, Brave, private windows
block cookies inside another site’s page):
200with an HTML page, framable by the same origins only, that names the account and offers Open in a new window. Nobody is signed in inside the frame. The button posts to the handoff endpoint below. - Refused after the registration was found:
403with a short bilingual HTML page framable by the registration’s origins, showing the error code. No frame grant is set.
A launch outside a frame whose state cookie is missing is refused before the state is used, as before.
Continue in a new window (handoff)
POST /api/v1/lti/handoffForm field handoff: the single-use id from the page above (64 hex characters,
valid 120 seconds, stored server-side with user and course ids only). The
browser opens it in a new top-level window, where first-party cookies work.
EmbayLMS consumes the id, applies the LTI account rule again (an account that
can administer the tenant is refused with LtiPrivilegedAccount) and answers
303 into the same sign-in exchange as a launch, landing on the course.
Refusals are a 303 to the login page with an error code:
| Case | Code |
|---|---|
Origin header missing or not this host | SamlInvalidAssertion |
| Missing, unknown, expired or already-used id | SamlInvalidAssertion |
| The account can administer the tenant | LtiPrivilegedAccount |
| State storage unavailable | SamlFailed |
Deep Linking
POST /api/v1/lti/deep-linkHandles a Deep Linking 2.0 (LtiDeepLinkingRequest) from the platform — the
flow behind “Add External Tool” / content selection in Canvas and Moodle.
EmbayLMS validates the request the same way as a launch (tool lookup, JWKS
signature, nonce, message type), then returns a signed LtiDeepLinkingResponse
JWT containing one ltiResourceLink content item per published course in
the tenant. The response is delivered as an auto-submitting HTML form that POSTs
back to the platform’s deep_link_return_url.
Deep linking must be explicitly enabled on the tool registration
(deepLinkEnabled); otherwise the request is rejected.
JWKS (public keys)
GET /api/v1/lti/.well-known/jwks.jsonPublishes EmbayLMS’s public RSA key so platforms can verify the JWTs EmbayLMS
signs (Deep Linking responses, and any message sent back to the platform). The
response is the standard JWKS shape { "keys": [ ... ] } and is cacheable for
up to one hour.
Registration reference
Register EmbayLMS as a tool on your platform using these values
({tenant} is your tenant subdomain):
| Setting | Value |
|---|---|
| OIDC login / initiation URL | https://{tenant}.embaylms.com/api/v1/lti/login |
| Redirect / launch (target link) URI | https://{tenant}.embaylms.com/api/v1/lti/launch |
| Deep linking URL | https://{tenant}.embaylms.com/api/v1/lti/deep-link |
| Public keyset (JWKS) URL | https://{tenant}.embaylms.com/api/v1/lti/.well-known/jwks.json |
| LTI version | 1.3.0 |
| Signing algorithm | RS256 |
On the EmbayLMS side, the tenant admin registers the platform as an LTI tool and provides the platform’s issuer, client id, and JWKS URL, plus each deployment id (optionally bound to a specific course). The launch only succeeds when the incoming token’s issuer, client id, and deployment id all match an active registration.
JIT provisioning
When a launch carries a learner EmbayLMS has not seen before, the user is provisioned automatically from the LTI claims:
- Matching: EmbayLMS first looks up an existing user by the
emailclaim (lowercased). If found and active, that account is used; an inactive account returnsAccountInactive. - Creation: If no match exists, a new user is created. Name comes from
given_name/family_name, falling back to thenameclaim. If the launch carries no email, a synthetic internal address (lti-{sub}@lti.embaylms.internal) is used so the account is still unique. - Role mapping: LTI
InstructororAdministratorroles map to the EmbayLMS Instructor role; everyone else maps to Learner. (Before 2026-08-02 this minted the retiredauthorrole. Accounts created by an earlier launch keepauthoruntil an administrator changes them;authorstill resolves to its original permission set, so nothing breaks, but it should be migrated to Instructor.) - Re-launch: On subsequent launches the existing account is reused (matched
by email). The role is not overwritten. The
rolesclaim is asserted by the remote platform, so honouring it on every launch would let an external tool demote an EmbayLMS Admin or promote a Learner. The role is set once, at creation; after that it is the tenant’s to manage.
JIT provisioning is per-tenant and isolated by the tenant schema — a launch never crosses tenant boundaries.
Troubleshooting
| Symptom | Likely cause |
|---|---|
Learner bounced to login with SamlNotConfigured | No active tool/deployment matches the token’s client id + issuer + deployment id. Re-check the registration values. |
SamlInvalidAssertion on launch | Signature failed, the nonce was already used (replay or a retried POST), or a required LTI claim (message_type, version 1.3.0, deployment_id) is missing. |
AccountInactive | The matched EmbayLMS user is deactivated. Reactivate the user or launch as a different account. |
| Deep linking returns “Tool not configured for deep linking” | deepLinkEnabled is off on the tool registration. |
| Platform cannot verify EmbayLMS-signed responses | The platform is not reading the JWKS URL, or is caching a stale key. Re-fetch …/lti/.well-known/jwks.json. |