# 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: 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:

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

The question should be specific, self-contained, and written in natural language.
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.
