Open Closed

http://localhost:4200/ login button doesn't work #9943


User avatar
0
yazilim.ithinka created
  • Template: microservice
  • Created ABP Studio Version: 1.3.2
  • Current ABP Studio Version: 1.3.2
  • Multi-Tenancy: Yes
  • UI Framework: angular
  • Theme: leptonx
  • Theme Style: system
  • Theme Menu Placement: side
  • Run Install Libs: Yes
  • Database Provider: ef
  • Database Management System: postgresql
  • Mobile Framework: none
  • Public Website: Yes
  • Social Login: Yes
  • Include Tests: Yes
  • Dynamic Localization: Yes
  • Kubernetes Configuration: Yes
  • Grafana Dashboard: Yes
  • Use Local References: No
  • Aspire: No
  • Optional Modules:
    • GDPR
    • TextTemplateManagement
    • AuditLogging
    • OpenIddictAdmin
  • Selected Languages: English, Turkish
  • Default Language: English
  • Create Command: abp new AbpSolution3 -t microservice --ui-framework angular --database-provider ef --database-management-system postgresql --theme leptonx --skip-migrator --public-website --without-cms-kit --dont-run-bundling -no-file-management -no-language-management

Hello again. I've checked new updates but I've taken different error from angular. I press login button and then I saw this page. Please review this error. Thanks.


1 Answer(s)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • In ABP Angular microservice solutions, clicking the "Login" button redirects to the AuthServer (IdentityServer/OpenIddict) for authentication. If nothing happens or you see a blank page, this is usually due to a misconfiguration in the authentication or environment settings.

    Checklist to resolve the login button issue:

    1. Check AuthServer is Running:

      • Ensure the AuthServer (or IdentityServer) project is running and accessible at the correct URL/port.
    2. Correct Redirect URLs:

      • In your appsettings.json (AuthServer and Angular), make sure the App:SelfUrl and AuthServer:Authority are set to the correct URLs (e.g., http://localhost:4200 for Angular, and the actual AuthServer URL).
      • The Angular app's environment.ts should have oAuthConfig.issuer set to the AuthServer URL.
    3. CORS Configuration:

      • The AuthServer must allow CORS for the Angular app's URL. In appsettings.json of AuthServer, add the Angular URL to CorsOrigins:
    "App": {
           "CorsOrigins": "http://localhost:4200"
         }
    
    1. Hosts File (if using custom domains):

      • If you use custom domains (e.g., angular.localtest.me), ensure your hosts file and all URLs match.
    2. Browser Console Errors:

      • Open the browser console (F12) and check for CORS, 404, or network errors when clicking "Login".
    3. Rebuild and Restart:

      • Stop all services, run abp install-libs, rebuild, and restart all backend and frontend projects.
    4. Check OAuth Configuration in Angular:

      • In environment.ts:
    oAuthConfig: {
           issuer: 'https://localhost:44368', // AuthServer URL
           clientId: 'AbpSolution3_App',      // Should match your app registration
           scope: 'offline_access openid profile role email phone'
         }
    
    1. Check for Social Login Issues:
      • If you enabled social login, ensure all provider settings (Google, Facebook, etc.) are correct and registered with the right redirect URIs.

    If you see a blank page or nothing happens:

    • It usually means the Angular app cannot reach the AuthServer, or the OAuth config is incorrect.

    References

    If you follow these steps and the login button still does not work, please check the browser console for errors and verify that both the Angular and AuthServer URLs are correct and accessible.


    This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 23, 2025, 10:47