定制 arsanchez/laravel-azure-provisioning 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

arsanchez/laravel-azure-provisioning

Composer 安装命令:

composer require arsanchez/laravel-azure-provisioning

包简介

This package adds a SCIM server, specifically designed to work with Microsoft Azure Active Directory, to your Laravel application.

README 文档

README

This package robtrehy\laravel-azure-provisioning adds a SCIM server, specifically designed to work with Microsoft Azure Active Directory, to your Laravel application.

The SCIM server enables you to create Users and Groups from your Azure Active Directory (AAD) automatically in your Laravel Application.

You can configure your AAD Enterprise Application to either provision all of your users and groups, just your users, or selected users or groups.

Prerequisites

  • A username field is required
    • Modify your model and migration to include a username field
    • Add username to the $fillable property of your user model
  • We recommend use of an active/status field for user soft delete
  • The default configuration will create a spatie/laravel-permission Role for each Group. To use the default configuration ensure you have required spatie/laravel-permission

Installation

  1. Run composer require robtrehy/laravel-azure-provisioning to include this in your project.
  2. Run php artisan vendor:publish --provider="RobTrehy\LaravelAzureProvisioning\AzureProvisioningProvider".
  3. Modify the published configuration file to your requirements. The file is located at config/azureprovisioning.php.

Configuration (Laravel)

  1. Open config/azureprovisioning.php to adjust the packages configuration

    If the file doesn't exist, ensure you have ran php artisan vendor:publish --provider="RobTrehy\LaravelAzureProvisioning\AzureProvisioningProvider".

  2. Modify the configuration as required. All fields are commented and should provide enough description for how they change the way this package works.

  3. If you do not wish to provision Groups you can entirely remove (or comment) the Groups key.

Configuration (Azure)

  1. Login to Azure Active Directory

  2. Select All services > Enterprise applications

  3. Select New application

  4. Select Create your own application

  5. Provide your application's name and select the option "Integrate any other application you don't find in the gallery (Non-gallery)"

  6. A) To provision all users/groups

    • On the properties page, ensure the option "User assignment required?" is set to No

--OR--

  1. B) To provision select users/groups

    • On the Properties page, ensure the option "User assignment required?" is set to Yes
    • On the Users and groups page, add the users and groups that you wish to provision
  2. Navigate to the Provisioning page

  3. Set the Provisioning Mode to Automatic

  4. In the Admin Credentials section set the Tenant URL to your domain (with https://) followed by /scim/v2.0/ (Or the value you have set in in the routePrefix configuration option). (e.g. https://laravel-azure-provisioning.com/scim/v2.0/)

  5. TODO: Provide the secret token generated by ... ?

  6. Test the configuration and then save the settings

  7. Expand the mapping section and remove any mappings that are not required by your application and add mappings that are missing and required by your application.

  8. Save the settings again

Note: If you only want users within set groups to be provisioned, follow the steps in 6 B) and add the groups you require. Only the members of the group will then be provisioned.

License

This Laravel package is free software distributed under the terms of the MIT license. See LICENSE

arsanchez/laravel-azure-provisioning 适用场景与选型建议

arsanchez/laravel-azure-provisioning 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 243 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 10 月 04 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 arsanchez/laravel-azure-provisioning 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 arsanchez/laravel-azure-provisioning 我们能提供哪些服务?
定制开发 / 二次开发

基于 arsanchez/laravel-azure-provisioning 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 243
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 18
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-04