mod_microsoft

Adds logon using the Microsoft identity platform.

If enabled then on /admin/authentication-services a panel is added for the Microsoft identity platform.

Here the following can de configured:

  • Application ID: as found in the app registration
  • Client Secret: as found in the app registration
  • Scope: space separated list of scopes that you want the user to consent to. Examples are: email, offline_access and profile. The openid scope is always added automatically. Defaults to email profile.
  • Tenant: Control who can sign in. Allowed values are: common, organizations, consumers, and tenant identifiers. Defaults to common.

On the Azure Portal App registrations an App can be registered and configured.

The redirect path for the app is shown on top of the /admin/authentication-services screen and is of the format: https://example.com/oauth-service/redirect

Accepted Events

Delegate callbacks:

  • event/2 with submit messages: admin_microsoft.

Edit on GitHub

Configuration

Configuration keys declared by this module. The defaults below are from the source code.

Module Key Type Default Description
mod_microsoft useauth boolean false Enable Microsoft Azure authentication. This allows users to log in using their Microsoft Azure account.
mod_microsoft appid string [] The Microsoft Azure App ID used for user authentication.
mod_microsoft appsecret string [] The Microsoft Azure App Secret used for user authentication.
mod_microsoft tennant string <<"common">> The Microsoft Azure tenant used for user authentication.
mod_microsoft scope string <<"User.Read email">> The scope used when requesting access to Microsoft Azure data.

Models

Models

microsoft

Check with useauth if the authentication using the Microsoft identity platform is enabled and configured.

Dispatch rules

Dispatch rules

mod_microsoft dispatch rules

URL dispatch rules defined by mod_microsoft in apps/zotonic_mod_microsoft/priv/dispatch/dispatch.