Open Closed

Check user exist after logged in from azure ad #7063


User avatar
0
Abdulaziz_Alsaffar created

Hi all, How to check after logged in from azure ad is user exist or not if not exist in my system keep it logged out or any message I want only users in my system can to login after azure ad

  • ABP Framework version: vX.X.X
  • UI Type: Angular
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    There is an event OnSignedIn(AuthServer - MVC). You can add your logic code here.

    context.Services.ConfigureApplicationCookie(options =>
    {
        options.Events.OnSignedIn = async cookieSignedInContext =>
        {
            //...
        };
    
    });
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09