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.
Click to show internal directories.
Click to hide internal directories.