groton-school/slim-spa-oauth2-client

Server-side actions and routes for authenticating to and accessing the an OAuth2 API from a Single Page (web) App

1.0.0 2025-08-08 14:44 UTC

This package is auto-updated.

Last update: 2025-08-09 12:35:54 UTC


README

Server-side actions and routes for authenticating to and accessing the an OAuth2 API from a Single Page (web) App

Latest Version

Install

composer require groton-school/slim-spa-oauth2-client

Use

This is intended to be used in conjuction with a Single Page (web) App implemented using @groton/canvas-api.client.spa or similar in the context of a slim-skeleton-based app.

This package assumes that session-management is being handled by odan/session.

  1. Implement SettingsInterface
  2. Define SettingsInterface dependency in app/dependencies.php
  3. Inject settings values in app/settings.php
  4. Define routes using RouteBuilder::define() in app/routes.php