> For the complete documentation index, see [llms.txt](https://docs.eduplex.eu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eduplex.eu/lti-connector/readme.md).

# LTI Connector

[LTI](https://www.imsglobal.org/spec/lti/v1p3#platforms-and-tools) implementation

## Works with

CakePHP Plugin [repository](https://gitlab.com/eduplex-api/cake-api-lti) to run on top of [cake-rest-api](https://packagist.org/packages/freefri/cake-rest-api).

## Openapi documentation

Swagger UI in [/api/v3/lti/openapi/](https://proto.eduplex.eu/api/v3/lti/openapi/)

## Demo Tool workflow

Here is a flowchart of the launch process:

{% @mermaid/diagram content="sequenceDiagram
title LTI demo launch flow
participant User as User
participant Platform as LTI Platform<br>(Tool Consumer)
participant Tool as LTI Tool<br>(Tool Provider)
User->>Platform: Access Tool via iframe
Platform->>Tool: Render iframe in loginUrl
Note right of Tool: Params: <br> iss <br> lti\_deployment\_id <br> client\_id <br> target\_link\_uri (redirect URI)
Tool->>Tool: do\_oidc\_login\_redirect()
Tool->>Platform: Redirect to Platform loginUrl(client\_id, redirect\_uri)
Note left of Platform: Params: <br> scope <br> response\_type <br> response\_mode <br> prompt <br> client\_id <br> redirect\_uri <br> state <br> nonce
Platform->>Tool: Post form to redirect\_uri
Note right of Tool: Params: <br> state <br> id\_token (JWT)
Tool->>Tool: Validate JWT (LtiMessageLaunch)" %}

## License

The source code for the site is licensed under the [**MIT license**](https://gitlab.com/eduplex-api), which you can find in the [LICENSE](https://gitlab.com/eduplex-api/cake-api-lti/-/blob/main/LICENSE/README.md) file.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.eduplex.eu/lti-connector/readme.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
