Bruno Lamps
Bruno Lamps

Reputation: 646

How can I integrate authentication between laravel applications?

I'm building a series of web applications to use in a small business. We will be using laravel framework to build these applications. The first app will manage users, authentication and authorization for all future applications. I have 2 doubts:

  1. Is there some best pratice / model for this auth integration? How can I tell app B that the user is authenticated and has access to it? I want to build different laravel apps in order to make it easier to maintain, but (at least for now) they'll run in the same server.
  2. Is it possible to make this integration with another php, non-laravel app? I have one legacy webapp, I'm trying to write the session data that authenticates it inside my laravel code and redirecting the user to the app, but the session data apparently isn't "persisting".

Thanks in advance.

Upvotes: 3

Views: 631

Answers (1)

IWebb
IWebb

Reputation: 86

It sounds like you are building a micro service architecture if you follow this methodology there is no reason your apps or services even have to be written in the same language as long as they and all interact using RESTful services.

More reading: http://martinfowler.com/articles/microservices.html

Upvotes: 1

Related Questions