ShibbolethBundle icon indicating copy to clipboard operation
ShibbolethBundle copied to clipboard

Laravel integration

Open ghost opened this issue 8 years ago • 2 comments

Is possible making a Laravel 5 integration?

ghost avatar Jan 27 '17 20:01 ghost

This might be possible but need a new repository.

Both Laravel and Symfony seem to use a new interface called "Guard" to enable additional authentication methods. I wrote a bundle that uses the Guard in Symfony see: https://github.com/roenschg/ShibbolethGuardBundle

But you can´t just use the SymfonyGuardBundle in Laravel because the Guard interfaces differ between these frameworks even though they work quite similar.

Usefull links:

  • https://laravel.com/docs/5.4/authentication#adding-custom-guards
  • http://symfony.com/doc/current/security/guard_authentication.html
  • https://github.com/roenschg/ShibbolethGuardBundle/blob/master/Security/ShibbolethAuthenticator.php

Compare the two guard interfaces: https://laravel.com/api/5.1/Illuminate/Contracts/Auth/Guard.html and http://api.symfony.com/3.2/Symfony/Component/Security/Guard/GuardAuthenticatorInterface.html

roenschg avatar Feb 14 '17 13:02 roenschg

Does the following module already implement the required functionality? https://github.com/StudentAffairsUWM/Laravel-Shibboleth-Service-Provider

roenschg avatar Feb 14 '17 21:02 roenschg