crims / portal-api
Centralized authentication and middleware library for CRIMS
1.0.2
2026-01-19 14:01 UTC
Requires (Dev)
- php: ^8.2
- laravel/framework: ^11.0
README
- Contains Model Classes for Crims Users (Roles, Groups & Shares)
- A Client to connect to our Laravel/Passport-based Authentication Server
- A User- and AuthServiceProvider to resolve
Illuminate\Support\Facades\Auth::user(). Providers will self register once this package is required oncomposer updateor@php artisan package:discover --ansi
Usage
In composer.json add to the require field:
"require": { "php": "^8.2", "crims/portal-api": "^1.0" ... }
Required Env Variables
Docker Container of the consuming microservice needs to pass:
PORTAL_URL - Url of the Authentication Server
EXTERNAL_ACCESS_KEYS - Optional: listing of key-value pairs for Robot connections