PHPackages                             tim-online/laravel-auth-pubtkt - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. tim-online/laravel-auth-pubtkt

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

tim-online/laravel-auth-pubtkt
==============================

Laravel login server for mod\_auth\_pubtkt

0.0.1(9y ago)010GPL-2.0PHPPHP &gt;=5.6.4

Since May 8Pushed 9y ago2 watchersCompare

[ Source](https://github.com/tim-online/laravel-auth-pubtkt)[ Packagist](https://packagist.org/packages/tim-online/laravel-auth-pubtkt)[ Docs](https://github.com/tim-online)[ RSS](/packages/tim-online-laravel-auth-pubtkt/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

Laravel mod\_auth\_pubtkt module
================================

[](#laravel-mod_auth_pubtkt-module)

This module implements the login server for the Apache [mod\_auth\_pubtkt](https://neon1.net/mod_auth_pubtkt/) module.

It works by setting an additional auth\_pubtkt cookie when logging in.

Installation
------------

[](#installation)

This package can be installed through Composer.

```
composer require tim-online/laravel-auth-pubtkt
```

You must install this service provider.

```
// config/app.php
'providers' => [
    ...
    Timonline\AuthPubtkt\AuthPubtktServiceProvider::class
    ...
];
```

You can publish the config file of this package with this command:

```
php artisan vendor:publish --provider="Timonline\AuthPubtkt\AuthPubtktServiceProvider"
```

This module works with the default Laravel login form but it needs some customisations to make the redirect to the protected application work properly.

Allow the auth\_pubtkt cookie to be unencrypted. Add the cookienaam as an exception to `EncryptCookies`:

```
/**
 * The names of the cookies that should not be encrypted.
 *
 * @var array
 */
protected $except = [
    'auth_pubtkt',
];
```

Add the `back` parameter as a hidden input to your login form:

```

```

And finally, after login, redirect to the back url. Edit your `Auth\LoginController`:

```
protected function redirectTo(Request $request)
{
    return $request->input('back', '/home');
}
```

To make the redirect work in Spark you can edit `SparkServiceProvider` and add this call in the `booted` method:

```
Spark::afterLoginRedirectTo(function() {
    $request = app('request');
    return $request->input('back', '/home');
});
```

To secure the protected application you can use something like this:

```

    AuthType mod_auth_pubtkt
    TKTAuthLoginURL https://myapp.tld/login
    TKTAuthTimeoutURL https://myapp.tld/login?timeout=1
    TKTAuthRefreshURL https://myapp.tld/login?refresh=1
    TKTAuthUnauthURL https://myapp.tld/login?unauth=1
    TKTAuthRequireSSL on
    require valid-user

```

TODO
----

[](#todo)

- make `?back=` work without manual customisations in view and controller
- make the EncryptCookies middleware automatically skip the auth\_pubtkt cookie
- create a custom Laravel authentication guard for mod\_auth\_pubtkt
- Add timeout, refresh &amp; unauth notifications

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3291d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fac6bbdcf1bcaab3b1ef0f96539e9a396f9460aec5a0ad7f66adcc19725e7dc5?d=identicon)[LeonB](/maintainers/LeonB)

---

Top Contributors

[![LeonB](https://avatars.githubusercontent.com/u/3979?v=4)](https://github.com/LeonB "LeonB (1 commits)")

---

Tags

laravelSSOmod\_auth\_pubtkt

### Embed Badge

![Health badge](/badges/tim-online-laravel-auth-pubtkt/health.svg)

```
[![Health](https://phpackages.com/badges/tim-online-laravel-auth-pubtkt/health.svg)](https://phpackages.com/packages/tim-online-laravel-auth-pubtkt)
```

###  Alternatives

[scaler-tech/laravel-saml2

SAML2 Service Provider integration for Laravel applications, based on OneLogin toolkit

2737.5k](/packages/scaler-tech-laravel-saml2)[authlete/authlete-laravel

Authlete Library for Laravel

4226.0k](/packages/authlete-authlete-laravel)[maicol07/laravel-oidc-client

OpenID Connect Client for Laravel

251.1k](/packages/maicol07-laravel-oidc-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
