aacotroneo / laravel-saml2

A Laravel 5 package for Saml2 integration as a SP (service provider) based on the simple OneLogin toolkit
MIT License
566 stars 237 forks source link

laravel passport #105

Open peterbayona opened 7 years ago

peterbayona commented 7 years ago

Can I use it with laravel passport?

AyodejiO commented 7 years ago

I doubt sir. SAML and oauth perform two different things.

If you use passport, you'll get user information (according to scope), access tokens and refresh tokens. which you must save on the native app.

I believe SAML just has kinda a root domain level authentication. for itself and all subdomains

MiragePresent commented 6 years ago

As I know - you can. If you will use \Laravel\Passport\Http\Middleware\CreateFreshApiToken::class (in my case I've added it to web group) that puts session id inside csrf token, or something like this.

julienmonty commented 5 years ago

@peterbayona Have you found a solution to use SAML with passport since then ?

nicolasdevsquad commented 5 years ago

@julienmonty any luck finding a way to use both? In my case I want to use the API for a system to system integration (using client_credentials). Thank you!