Skip to content

Commit 59e018c

Browse files
committed
Fix crash rendering sign-in page when only AAD B2C is configured
Signed-off-by: Sai Asish Y <say.apm35@gmail.com>
1 parent f5e0234 commit 59e018c

2 files changed

Lines changed: 37 additions & 8 deletions

File tree

package-lock.json

Lines changed: 36 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/users/signin-social/signinSocialViewModelBinder.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,11 @@ export class SigninSocialViewModelBinder implements ViewModelBinder<SigninSocial
5353
const termsOfService = await this.getTermsOfService();
5454
const termsOfUse = (termsOfService.text && termsOfService.enabled) ? termsOfService.text : undefined;
5555

56-
const tenants = aadIdentityProvider.allowedTenants || [];
57-
5856
if (aadIdentityProvider) {
5957
state.aadConfig = {
6058
classNames: classNames,
6159
label: model.aadLabel,
62-
tenants: tenants,
60+
tenants: aadIdentityProvider.allowedTenants || [],
6361
replyUrl: model.aadReplyUrl || undefined,
6462
termsOfUse: aadB2CIdentityProvider ? undefined : termsOfUse // display terms of use only once if both configs are present
6563
};

0 commit comments

Comments
 (0)