From d0a9e04c7de3736bf9848e5bdd075e705fa3966c Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Thu, 20 Jun 2019 10:21:55 -0500 Subject: [PATCH] Azure Plugin: Update readme file with configuration - refs BT#9859 --- plugin/azure_active_directory/README.md | 25 ++++++++----------- .../src/AzureActiveDirectory.php | 2 +- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/plugin/azure_active_directory/README.md b/plugin/azure_active_directory/README.md index bf7ad57d73..fa46f0cb46 100644 --- a/plugin/azure_active_directory/README.md +++ b/plugin/azure_active_directory/README.md @@ -1,19 +1,16 @@ # The Azure Active Directory Plugin -Allow authentication with Microsoft's Azure Active Directory +Allow authentication (with OAuth2) with Microsoft's Azure Active Directory. + +> This plugin use the [`thenetworg/oauth2-azure`](https://github.com/TheNetworg/oauth2-azure) package. ### To configure Azure Active Directory -* [Create an Azure AD B2C tenant](https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-get-started/) -* [Register your application](https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-app-registration/) -* [Configure Facebook, Google+, Microsoft account, Amazon, and LinkedIn accounts for use in your consumer-facing applications](https://azure.microsoft.com/en-us/documentation/articles/active-directory-b2c-overview/#how-to-articles) +* Create and configure an application. +* In _Authentication_ section, set an _Reply URL_ with `https://{CHAMILO_URL}/plugin/azure_active_directory/src/callback.php`. +* In _Certificates & secrets_, create a secret string (or application password). And keep copied. ### To configure this plugin -* Enable -* Application ID: Enter the Application Id assinged to your app by the Azure portal, e.g. 580e250c-8f26-49d0-bee8-1c078add1609 -* Tenant: Enter the name of your B2C directory, e.g. contoso.onmicrosoft.com -* Sign up policy: Enter your sign up policy name, e.g. b2c_1_sign_up -* Sign in policy: Enter your sign in policy name, e.g. b2c_1_sign_in -* Block name: (Optional) The name to show above the buttons - -And assign a region. Preferably `login_bottom` - -> If you have issues with the OAuth request, try using OAuth 1.0 and modifying the files in this [gist](https://gist.github.com/AngelFQC/45d0d6c5eb4d4bcce24936e699cf7f1f) +* _Enable_ +* _Application ID_: Enter the Application Id assinged to your app by the Azure portal. +* _Application secret_: Enter the client secret created. +* _Block name_: (Optional) The name to show above the login button. +* And assign a region. Preferably `login_bottom`. diff --git a/plugin/azure_active_directory/src/AzureActiveDirectory.php b/plugin/azure_active_directory/src/AzureActiveDirectory.php index 09535a1909..3b41ca8cee 100644 --- a/plugin/azure_active_directory/src/AzureActiveDirectory.php +++ b/plugin/azure_active_directory/src/AzureActiveDirectory.php @@ -32,7 +32,7 @@ class AzureActiveDirectory extends Plugin self::SETTING_BLOCK_NAME => 'text', ]; - parent::__construct('1.1', 'Angel Fernando Quiroz Campos', $settings); + parent::__construct('2.0', 'Angel Fernando Quiroz Campos', $settings); } /**