rednose/kerberos-bundle
Symfony bundle that adds Kerberos/SPNEGO authentication to your application, enabling single sign-on with existing domain credentials. It integrates with Symfony's security layer so protected routes can authenticate users automatically through negotiated Kerberos login.
composer require it into a Laravel app and expect it to work; in a Laravel context treat it as reference material or a porting source.DependencyInjection/ for the config keys and defaults, Security/ (or Security/Authentication/) for the listener/provider/token classes, and Resources/config/ for service wiring. The README is likely thin, so the source is the documentation.krb5 extension (php-krb5), a keytab containing the service principal, and clients that will send an Authorization: Negotiate <token> header. Confirm these before anything else.user@REALM) to an application user.401 with WWW-Authenticate: Negotiate to prompt the browser, then fall back to form login when no Negotiate header is present or the client is not domain-joined.Authorization header end-to-end. Terminating TLS at a proxy is fine; dropping the header is not.Negotiate header, validates the ticket via the krb5 extension, and resolves a user — mirroring the Symfony listener's flow. There is no first-party Laravel equivalent, so budget for this.curl --negotiate -u : http://host/ and confirm with klist.krb5 PECL extension. It is rarely installed by default and is painful in Docker and on shared hosting. Validate this first; if it is unavailable, the bundle is unusable.klist/kinit and verify NTP on app servers.Authorization header. You may need SetEnvIf Authorization or explicit HTTP_AUTHORIZATION forwarding.klist -kt, enable Kerberos logging, and log only the presence/shape of the header — never the raw token.krb5 (or using an LDAP/AD package) is likely less work than adapting this bundle.How can I help you explore Laravel packages today?