Ltix

CIHex.pmHex DocsLicense

Ltix is an Elixir library for building LTI 1.3 tool applications. It handles the OIDC launch flow, JWT verification, and claim parsing so you can focus on what your tool actually does.

# Platform initiates login - build the redirect
{:ok, %{redirect_uri: url, state: state}} =
  Ltix.handle_login(params, launch_url)

# Platform sends the signed JWT - validate and parse
{:ok, context} = Ltix.handle_callback(params, state)

context.claims.roles          #=> [%Role{type: :context, name: :instructor}, ...]
context.claims.resource_link  #=> %ResourceLink{id: "link-1", title: "Assignment 1"}
context.registration          #=> your struct from StorageAdapter.get_registration/2

Features

Installation

Add :ltix to your dependencies:

def deps do
  [
    {:ltix, "~> 0.1"}
  ]
end

Documentation

License

MIT.

See LICENSE for details.