Skip to content
Office365 integration for Liferay gives an out of the box access to use the msgraph-sdk from your own Liferay plugin. This includes the ability to let your user login to Microsoft with Auth0.
Java
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
COPYING
README.md

README.md

Office 365 integration

requirement

To be able to authenticate with office 365, the plugin needs to be configured with an apiKey and an api secret that can be retrieved in the Microsoft azure panel by registering a new application. A redirect URL will also need to be provided. This URL needs to be your portal URL followed by /o/o365/login. Note that except for localhost tests, the URL is required to be HTTPS.

More info on the application registration is available on Microsoft documentation: https://docs.microsoft.com/fr-fr/graph/auth-register-app-v2

When targeting users in an organizational directory, the organization needs to approve the application for its users before they can be authorized to use it.

Dependencies

The following bundles are required for this module to work:

Authentication

The authentication work with a filter hook that listens to the /o/o365/login URL of the portal.

  1. Whenever a user hit that URL he will be redirected to the office 365 login page
  2. The user login on the Microsoft site and accept the authorization requested
  3. The user is sent back to the portal /o/o365/login URL with an authentication code provided
  4. The filter hook validates that code and get an access token from office 365
  5. The filter hook save the access token to use it subsequent request

More info is available to understand the office 365 authentication process: https://docs.microsoft.com/fr-fr/azure/active-directory/develop/v1-protocols-openid-connect-code

You can’t perform that action at this time.