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
Requires
- dflydev/fig-cookies: dev-feat/chips
- groton-school/slim-norms: ^1.0
- league/oauth2-client: ^2.8
- odan/session: ^6.4
- php-di/php-di: >=6.0
- psr/container: >=1.0
- psr/http-message: ^2.0
- slim/http: ^1.4
- slim/slim: ^4.14
Requires (Dev)
README
Server-side actions and routes for authenticating to and accessing the an OAuth2 API from a Single Page (web) App
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.
- Implement
SettingsInterface
- Define
SettingsInterface
dependency inapp/dependencies.php
- Inject settings values in
app/settings.php
- Define routes using
RouteBuilder::define()
inapp/routes.php