launch

package
v0.0.0-...-6f98074 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package launch provides functions and methods for LTI's tool launch.

Index

Constants

View Source
const ContextKey = ContextKeyType("LaunchID")

ContextKey is the actual value used for the context key.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextKeyType

type ContextKeyType string

ContextKeyType is used as the key to store the launch ID in the request context.

type Launch

type Launch struct {
	// contains filtered or unexported fields
}

A Launch implements an external application's role in the LTI specification's launch flow.

func New

func New(cfg datastore.Config, next http.HandlerFunc) *Launch

New creates a *Launch, which implements the http.Handler interface for launching a tool.

func (*Launch) ServeHTTP

func (l *Launch) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP performs validations according the OIDC launch flow modified for use by the IMS Global LTI v1p3 specifications. State is found in a user agent cookie and the POST body. Nonce is found embedded in the id_token and in a datastore.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL