laravel-azure-ad-oauth | socialiate plugin for Laravel applications | Azure library
kandi X-RAY | laravel-azure-ad-oauth Summary
kandi X-RAY | laravel-azure-ad-oauth Summary
Drop-in socialiate plugin for Laravel applications for Microsoft Azure SSO.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Refresh an access token .
- Register the providers .
- Convert a azure user to an Azure user .
- Maps User entity to User entity .
- Handle OAuth response .
- Get the user .
- Find or create a user .
- URL safe base64 decode
- Get user by token .
- Register Azure User
laravel-azure-ad-oauth Key Features
laravel-azure-ad-oauth Examples and Code Snippets
Community Discussions
Trending Discussions on laravel-azure-ad-oauth
QUESTION
I am using Laravel-5.8 for a web application. In order to integrate Azure AD SSO, I installed this package in my application:
composer require metrogistics/laravel-azure-ad-oauth
When, I wanted to relaunch my application I got this error:
Class 'Request' not found
The error is found here:
config\azure-oath.php
How do I resolve this error?
Thank you
...ANSWER
Answered 2020-Jan-09 at 01:40The issue has been solved by the link in @Sunil kumawat 's comment, just add it as an answer to make it easier for others to find here.
https://github.com/metrogistics/laravel-azure-ad-oauth/issues/1
I deleted that part of the code, now the code is like this: 'redirect' => '/ login / microsoft / callback', and it works for me.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install laravel-azure-ad-oauth
You will need to make the password field in the users table nullable.
You will need to have a VARCHAR field on the users table that is 36 characters long to store the Azure AD ID for the user. The default name for the field is azure_id but that can be changed in the config file: 'user_id_field' => 'azure_id',.
Navigate to Azure Active Directory -> App registrations. Create a new application. Select the "Web app / API" Application Type. Add the "Sign-on URL". This will typically be https://domain.com/auth/login. Click into the newly created app. The "Application ID" is what you will need for your AZURE_AD_CLIENT_ID env variable. Click into "Reply URLs". You will need to whitelist the redirection path for your app here. It will typically be https://domain.com/login/microsoft/callback. Click "Save". Select the permissions required for you app in the "Required permissions" tab.
Navigate to Azure Active Directory -> App registrations.
Create a new application
Choose a name
Select the "Web app / API" Application Type
Add the "Sign-on URL". This will typically be https://domain.com/auth/login
Click "Create"
Click into the newly created app.
The "Application ID" is what you will need for your AZURE_AD_CLIENT_ID env variable.
Click into "Reply URLs". You will need to whitelist the redirection path for your app here. It will typically be https://domain.com/login/microsoft/callback. Click "Save"
Select the permissions required for you app in the "Required permissions" tab.
Add any necessary roles to the manifest:
Click on the "Manifest" tab.
Add roles as necessary using the following format: "appRoles": [ { "allowedMemberTypes": [ "User" ], "displayName": "Manager Role", "id": "08b0e9e3-8d88-4d99-b630-b9642a70f51e",// Any unique GUID "isEnabled": true, "description": "Manage stuff with this role", "value": "manager" } ],
Click "Save"
In the "Keys" tab, enter a description (something like "App Secret"). Set Duration to "Never Expires". Click "Save". Copy the whole key. This will not show again. You will need this value for the AZURE_AD_CLIENT_SECRET env variable.
Click on the "Managed application" link (It will be the name of the application);
Under the "Properties" tab, enable user sign-in. Make user assignment required. Click "Save".
Under the "Users and groups" tab, add users and their roles as needed.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page