From 554da4304e8b59bb8b52e4f8dc53eeab458335bf Mon Sep 17 00:00:00 2001 From: doktordirk Date: Wed, 2 May 2018 19:32:45 +0200 Subject: [PATCH] feat(baseConfig): added azure ad configuration --- doc/baseConfig.md | 12 ++++++++++++ src/baseConfig.js | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/doc/baseConfig.md b/doc/baseConfig.md index 61dfea5..bf864cf 100644 --- a/doc/baseConfig.md +++ b/doc/baseConfig.md @@ -266,6 +266,18 @@ providers : { oauthType: '2.0', popupOptions: { width: 1028, height: 529 } }, + azure_ad: { + name: 'azure_ad', + url: '/auth/azure_ad', + authorizationEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', + redirectUri: window.location.origin, + logoutEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/logout', + postLogoutRedirectUri: window.location.origin, + requiredUrlParams: ['scope'], + scope: ['user.read'], + scopeDelimiter: ' ', + oauthType: '2.0' + }, auth0: { name: 'auth0', oauthType: 'auth0-lock', diff --git a/src/baseConfig.js b/src/baseConfig.js index add5651..c98c1fa 100644 --- a/src/baseConfig.js +++ b/src/baseConfig.js @@ -295,6 +295,18 @@ export class BaseConfig { oauthType : '2.0', popupOptions : {width: 1028, height: 529} }, + azure_ad: { + name : 'azure_ad', + url : '/auth/azure_ad', + authorizationEndpoint: 'https://login.microsoftonline.com/common/oauth2/v2.0/authorize', + redirectUri : window.location.origin, + logoutEndpoint : 'https://login.microsoftonline.com/common/oauth2/v2.0/logout', + postLogoutRedirectUri: window.location.origin, + requiredUrlParams : ['scope'], + scope : ['user.read'], + scopeDelimiter : ' ', + oauthType : '2.0' + }, auth0: { name : 'auth0', oauthType : 'auth0-lock',