Jelajahi Sumber

Added Azure documentation

Edgard 5 tahun lalu
induk
melakukan
337be4ee26
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      README.md
  2. 1 1
      inc/provider.class.php

+ 1 - 0
README.md

@@ -17,6 +17,7 @@ Single sign-on (SSO) is a property of access control of multiple related, yet in
  * To test, do logout and try login with links below login page `[ Login with <name> ]`
  * To test, do logout and try login with links below login page `[ Login with <name> ]`
 
 
 # Available providers
 # Available providers
+ * Azure - https://docs.microsoft.com/azure/app-service/configure-authentication-provider-aad
  * Facebook - https://developers.facebook.com/docs/apps/
  * Facebook - https://developers.facebook.com/docs/apps/
  * GitHub - https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
  * GitHub - https://developer.github.com/apps/building-oauth-apps/creating-an-oauth-app/
  * Google - https://developers.google.com/identity/protocols/OpenIDConnect
  * Google - https://developers.google.com/identity/protocols/OpenIDConnect

+ 1 - 1
inc/provider.class.php

@@ -877,7 +877,7 @@ class PluginSinglesignonProvider extends CommonDBTM {
       }
       }
 
 
       $email = false;
       $email = false;
-      $email_fields = ['email', 'e-mail', 'email-address'];
+      $email_fields = ['email', 'e-mail', 'email-address', 'mail'];
 
 
       foreach ($email_fields as $field) {
       foreach ($email_fields as $field) {
          if (isset($resource_array[$field]) && is_string($resource_array[$field])) {
          if (isset($resource_array[$field]) && is_string($resource_array[$field])) {