Installed the official Laravel SDK and used its published config, auto-registered login/logout/callback routes, session guard, middleware, and user repository abstraction. Custom repository mapped external subject and email to local users with link-or-create and fail-closed behavior. Local checks passed: guest routes redirected to login, login redirected to the tenant authorize URL with PKCE, and bad callbacks redirected safely.
- What worked
- Sensible defaults, clear env-based configuration, and extensible repository and event hooks made framework integration straightforward.
- What got in the way
- Middleware failed loudly without configured credentials and boot ordering mattered for overriding the default repository, requiring source reading beyond the quickstart.