AzureAD / microsoft-authentication-library-for-js

Microsoft Authentication Library (MSAL) for JS
http://aka.ms/aadv2
MIT License
3.64k stars 2.65k forks source link

[BUG] Problems with Login Pop Up #6934

Closed FernandoRb16 closed 6 months ago

FernandoRb16 commented 7 months ago

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

2.31.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

2.4.6

Public or Confidential Client?

Public

Description

There is a problem when using the pop-up login because when we maximize the login screen, the MFA flow is lost in the initial pain from where the trigger was sent to lift that pop-up

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

MSAL Configuration

auth: {
      authority: environment.adB2C.authority,
      clientId: environment.adB2C.clientID,
      redirectUri: environment.adB2C.redirectUri,
      postLogoutRedirectUri: environment.adB2C.logoutRedirectUri,
      navigateToLoginRequestUrl: true,
      knownAuthorities: environment.adB2C.knownAuthorities,
    },
    cache: {
      cacheLocation: 'localStorage',
      storeAuthStateInCookie: false,
    },

Relevant Code Snippets

raiseMFAPopup(): Observable<any> {
    return this.authService
      .authorizationPopUpRequest({
        scopes: environment.adB2C.scopes,
        authority: environment.adB2C.authorityApprovalFlow,
        redirectStartPage: window.location.href,
      } as PopupRequest)
      .pipe(
        catchError((error) => {
          return throwError(error);
        }),
        tap((_) =>
          // Got success information
)

Reproduction Steps

1.- trigger MFA 2.- Maximaize login pop-up screen 3.- Fill login data 4.- Got Error

Expected Behavior

Allow the screen to be maximized to return to the corresponding page in the main window

Identity Provider

Azure B2C Custom Policy

Browsers Affected (Select all that apply)

Chrome

Regression

No response

Source

Internal (Microsoft)

tnorling commented 7 months ago

What error are you getting?

microsoft-github-policy-service[bot] commented 7 months ago

@FernandoRb16 This issue has been automatically marked as stale because it is marked as requiring author feedback but has not had any activity for 5 days. If your issue has been resolved please let us know by closing the issue. If your issue has not been resolved please leave a comment to keep this open. It will be closed automatically in 7 days if it remains stale.

FavioChavezNtt commented 6 months ago

The issue is still not resolved