Open Closed

Login page stuck in redirect loop when trying to use Resource Owner Password Flow #3106


User avatar
0
clearlaunch created
  • ABP Framework version: v5.1.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"!
  • LoginRedirects.PNG

This config works for Authorization Code Flow const oAuthConfig = { issuer: 'https://localhost:44329', redirectUri: baseUrl, clientId: 'TealTech_App', responseType: 'code', scope: 'offline_access TealTech', requireHttps: true, };

This config brings me to the login loop for Resource Owner Password Flow const oAuthConfig = { issuer: 'https://localhost:44329', // IdentityServer url clientId: 'TealTech_App', dummyClientSecret: 'secret pulled from [IdentityServerClientSecrets] table', scope: 'offline_access TealTech', }; **Is dummyClientSecret the proper key? I've also tried clientSecret but same behavior.


2 Answer(s)
  • User Avatar
    0
    gterdem created
    Support Team Senior .NET Developer

    Please share the IdentityServer logs. It should be under Logs folder with the name logs.txt.

  • User Avatar
    0
    clearlaunch created

    I found the issue.

    For some reason I had added canActivate: [AuthGuard, PermissionGuard], on all the routes in app-routing.module.ts

    Looks like the login page is now working within Angular.

    **Can you help with one small related question. ** If I need to run some code when a user successfully logs in where does that belong?

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11