diff options
author | Peter Krantz <peter.krantz@gmail.com> | 2020-10-26 18:49:55 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-26 17:49:55 +0000 |
commit | 6c9ab61df5deb5b921677464e5aa091e9b5e60b1 (patch) | |
tree | 0ac2627cccbf8d9f1b0a79c66dd00b6309ad4ecf /docs/openid.md | |
parent | Add an admin api to delete local media. (#8519) (diff) | |
download | synapse-6c9ab61df5deb5b921677464e5aa091e9b5e60b1.tar.xz |
Added basic instructions for Azure AD to OpenId documentation (#8582)
Signed-off-by: Peter Krantz peter.krantz@gmail.com
Diffstat (limited to 'docs/openid.md')
-rw-r--r-- | docs/openid.md | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/docs/openid.md b/docs/openid.md index 8b26b0bae5..6670f36261 100644 --- a/docs/openid.md +++ b/docs/openid.md @@ -52,6 +52,32 @@ specific providers. Here are a few configs for providers that should work with Synapse. +### Microsoft Azure Active Directory +Azure AD can act as an OpenID Connect Provider. Register a new application under +*App registrations* in the Azure AD management console. The RedirectURI for your +application should point to your matrix server: `[synapse public baseurl]/_synapse/oidc/callback` + +Go to *Certificates & secrets* and register a new client secret. Make note of your +Directory (tenant) ID as it will be used in the Azure links. +Edit your Synapse config file and change the `oidc_config` section: + +```yaml +oidc_config: + enabled: true + issuer: "https://login.microsoftonline.com/<tenant id>/v2.0" + client_id: "<client id>" + client_secret: "<client secret>" + scopes: ["openid", "profile"] + authorization_endpoint: "https://login.microsoftonline.com/<tenant id>/oauth2/v2.0/authorize" + token_endpoint: "https://login.microsoftonline.com/<tenant id>/oauth2/v2.0/token" + userinfo_endpoint: "https://graph.microsoft.com/oidc/userinfo" + + user_mapping_provider: + config: + localpart_template: "{{ user.preferred_username.split('@')[0] }}" + display_name_template: "{{ user.name }}" +``` + ### [Dex][dex-idp] [Dex][dex-idp] is a simple, open-source, certified OpenID Connect Provider. |