This application allows for the setup of Single Sign On (SSO) with other applications. This is done by using the Laravel Socialite package.
Available providers and their setup steps are as follows:
Setup of Google SSO requires the configuration of a Google API project/application. Details on how to do so can be found here. Please keep in mind that at any time the link above may be out of date. Setup of the Google API project/application is not fully covered in this document.
Once the Google API project/application is set up, the following steps are required to set up Google SSO:
- Retrieve the
client_id
andclient_secret
from the Google API project/application. - Add the
client_id
andclient_secret
to the.env
file asGOOGLE_CLIENT_ID
andGOOGLE_CLIENT_SECRET
respectively. - Ensure that the proper Redirect URI is set in the Google API project/application. The Redirect URI should be set to
https://[YOUR_DOMAIN_HERE]/auth/google/callback
.- If you are using a local development environment, the Redirect URI should be set to
http://localhost/auth/google/callback
.
- If you are using a local development environment, the Redirect URI should be set to
- The
GOOGLE_REDIRECT_URI
environment variable should be set to the same value as the Redirect URI set in the Google API project/application. This should already be dynamically configured for you based on the applicationsAPP_URL
environment variable. But it is recommended to double-check. - "Login with Google SSO" should now be available on the login page.
Setup of Microsoft SSO requires the configuration of a Microsoft Azure AD application. Details on how to do so can be found here. Please keep in mind that at any time the link above may be out of date. Setup of the Microsoft Azure AD application is not fully covered in this document.
Once the Microsoft Azure AD application is set up, the following steps are required to set up Microsoft SSO:
- Retrieve the
client_id
,client_secret
, andtenant_id
from the Microsoft Azure AD application. - Add the
client_id
,client_secret
, andtenant_id
to the.env
file asAZURE_CLIENT_ID
,AZURE_CLIENT_SECRET
, andAZURE_TENANT_ID
respectively. - Ensure that the proper Redirect URI is set in the Microsoft Azure AD application. The Redirect URI should be set to
https://[YOUR_DOMAIN_HERE]/auth/azure/callback
.- If you are using a local development environment, the Redirect URI should be set to
http://localhost/auth/azure/callback
.
- If you are using a local development environment, the Redirect URI should be set to
- The
AZURE_REDIRECT_URI
environment variable should be set to the same value as the Redirect URI set in the Microsoft Azure AD application. This should already be dynamically configured for you based on the applicationsAPP_URL
environment variable. But it is recommended to double-check. - "Login with Azure SSO" should now be available on the login page.