Sharebar?

Database model example?

Database model example?

The LTI 1.3 PHP library and example tool are extremely helpful, but the fake database in the example tool and file-based cache the library uses has left me wanting more. Being new to the OIDC workflow, I could really use an example of a best-practices database model for storing issuers/clients, deployments, and caching keys.

If anyone has a model they're willing to share, or knows of another project that has a model I could borrow from, that'd be much appreciated.

Related, I'm confused a bit by how to implement the find_registration_by_issuer method required for the LTI\Database. As part of the return it's supposed to set_kid($kid), but isn't the $kid part of the launch data? How is the function getting that information, since the JWT isn't being passed to the function?