Open Closed

ABP Angular menus not loading after loginUsingGrant (custom grant, iframe scenario) #10297


User avatar
0
cssharma@cargoflash.com created

We have an existing ASP.NET MVC (.NET 4.8) application. We are embedding an ABP Microservice Angular application inside this existing app using an iframe.

The user is already authenticated in the existing application.

Authentication Flow

  • The ABP Angular application is loaded inside an iframe.
  • We do not use redirect-based login.
  • We perform programmatic login using a grant in ABP Angular:

this.abpOAuthService.loginUsingGrant('password', { username, password, scope: 'openid profile offline_access AeroMiles' });

Authentication succeeds:

  • Access token is stored
  • Authorized API calls work correctly

Problem

After successful login using loginUsingGrant:

  • The user is authenticated
  • API calls succeed
  • ABP Angular menus do not appear
  • Menu contributors are not re-executed
  • UI does not reflect authenticated state

This works correctly when using standard redirect login, but not with loginUsingGrant.

Expected Behavior

After successful programmatic login:

  • ABP Angular menus should be initialized
  • Menu contributors should run
  • UI should reflect authenticated state

No answer yet!
Learn More, Pay Less
33% OFF
All Trainings!
Get Your Deal
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.2.0-preview. Updated on January 09, 2026, 07:22
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.