Download the PHP package tim-online/laravel-auth-pubtkt without Composer
On this page you can find all versions of the php package tim-online/laravel-auth-pubtkt. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tim-online/laravel-auth-pubtkt
More information about tim-online/laravel-auth-pubtkt
Files in tim-online/laravel-auth-pubtkt
Package laravel-auth-pubtkt
Short Description Laravel login server for mod_auth_pubtkt
License GPL-2.0
Homepage https://github.com/tim-online
Informations about the package laravel-auth-pubtkt
Laravel mod_auth_pubtkt module
This module implements the login server for the Apache mod_auth_pubtkt module.
It works by setting an additional auth_pubtkt cookie when logging in.
Installation
This package can be installed through Composer.
You must install this service provider.
You can publish the config file of this package with this command:
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
:
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
:
To make the redirect work in Spark you can edit SparkServiceProvider
and add
this call in the booted
method:
To secure the protected application you can use something like this:
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 & unauth notifications
All versions of laravel-auth-pubtkt with dependencies
ext-mbstring Version *
ext-openssl Version *