Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular-b2c-sample - Graph Api - getprofile page endless loop #7552

Open
2 tasks
hmheng opened this issue Feb 2, 2025 · 0 comments
Open
2 tasks

angular-b2c-sample - Graph Api - getprofile page endless loop #7552

hmheng opened this issue Feb 2, 2025 · 0 comments
Labels
b2c Related to Azure B2C library-specific issues bug-unconfirmed A reported bug that needs to be investigated and confirmed msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.

Comments

@hmheng
Copy link

hmheng commented Feb 2, 2025

Core Library

MSAL.js (@azure/msal-browser)

Core Library Version

4.0.0

Wrapper Library

MSAL Angular (@azure/msal-angular)

Wrapper Library Version

4.0.2

Public or Confidential Client?

Public

Description

angular-b2c-sample

  1. getprofile page endless loop - Graph Api
  2. if change to non-graph api, it is loading fine.

Error Message

No response

MSAL Logs

No response

Network Trace (Preferrably Fiddler)

  • Sent
  • Pending

MSAL Configuration

auth: 
{
      clientId: 'client_id',
      redirectUri: '/', 
      postLogoutRedirectUri: '/',
    },

Relevant Code Snippets

ngOnInit() {
    this.getProfile(environment.apiConfig.uri);
  }

  getProfile(url: string) {
    this.http.get(url)
      .subscribe(profile => {
        console.log(profile);
        this.profile = profile;
      });
  }

Reproduction Steps

Put in all b2c necessary configuration values.

Expected Behavior

Graph api call should load normally instead of keep redirecting to login again and again.

Identity Provider

Azure B2C Custom Policy

Browsers Affected (Select all that apply)

Chrome, Edge

Regression

No response

@hmheng hmheng added bug-unconfirmed A reported bug that needs to be investigated and confirmed question Customer is asking for a clarification, use case or information. labels Feb 2, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs: Attention 👋 Awaiting response from the MSAL.js team label Feb 2, 2025
@github-actions github-actions bot added b2c Related to Azure B2C library-specific issues msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package public-client Issues regarding PublicClientApplications labels Feb 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b2c Related to Azure B2C library-specific issues bug-unconfirmed A reported bug that needs to be investigated and confirmed msal-angular Related to @azure/msal-angular package msal-browser Related to msal-browser package Needs: Attention 👋 Awaiting response from the MSAL.js team public-client Issues regarding PublicClientApplications question Customer is asking for a clarification, use case or information.
Projects
None yet
Development

No branches or pull requests

1 participant