Laravel, Azure SSO with RBAC based on location/site

Deano 0 Reputation points
2023-06-28T16:46:28.1833333+00:00

Hi,

Looking to create a Laravel site with connection to Azure AD/SSO, i will also need this to have RBAC within to customise what people can and cant do, which is also restricted based on there location/site number (not website) i.e if location number is 1234 then the can only view details for this, so like multi-tenancy, but also allowing super users to view all.

Anyone know where to start with this ?

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Shweta Mathur 30,296 Reputation points Microsoft Employee Moderator
    2023-06-30T10:40:04.1833333+00:00

    Hi @Deano ,

    Thanks for reaching out.

    To integrate Azure AD SSO with Laravel, here are the steps clearly defined https://stackoverflow.com/questions/54289010/azure-active-directory-sso-with-laravel/62331871#62331871

    In this role-based authentication in Laravel, middleware is used to control user access as follows

    php artisan make:middleware CheckRole

    Different views or pages need to call based on User Role as mentioned in this blog post.

    Regarding roles and permissions, you can check it in azure (as scopes) or base it on your application's permissions. Refer Laravel's middleware.

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.