Skip to content

Commit

Permalink
Azure Plugin: Update readme file with configuration - refs BT#9859
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 20, 2019
1 parent 0720401 commit d0a9e04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
25 changes: 11 additions & 14 deletions plugin/azure_active_directory/README.md
Original file line number Diff line number Diff line change
@@ -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`.
2 changes: 1 addition & 1 deletion plugin/azure_active_directory/src/AzureActiveDirectory.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function __construct()
self::SETTING_BLOCK_NAME => 'text',
];

parent::__construct('1.1', 'Angel Fernando Quiroz Campos', $settings);
parent::__construct('2.0', 'Angel Fernando Quiroz Campos', $settings);
}

/**
Expand Down

0 comments on commit d0a9e04

Please sign in to comment.