Open Closed

Not able to login with admin user anymore #4458


0
affern created

Hi.

I'm not able to login with my admin user anymore. I deleted my database and all my migration files to have a clean solution before I published to Azure. Now I'm not able to login to my development app or Azure app with admin user. Something is failing in LoginAsync.


9 Answer(s)
  • 0
    affern created

    From log file: INFO 2018-01-08 22:50:52,268 [3 ] soft.AspNetCore.Hosting.Internal.WebHost - Request starting HTTP/1.1 GET <a class="postlink" href="http://localhost:22742/AbpUserConfiguration/GetAll">http://localhost:22742/AbpUserConfiguration/GetAll</a> application/json DEBUG 2018-01-08 22:50:52,272 [3 ] IdentityServer4.CorsPolicyProvider - CORS request made for path: /AbpUserConfiguration/GetAll from origin: <a class="postlink" href="http://localhost:4200">http://localhost:4200</a> but rejected because invalid CORS path DEBUG 2018-01-08 22:50:52,272 [3 ] n.Cookies.CookieAuthenticationMiddleware - AuthenticationScheme: Identity.Application was not authenticated. DEBUG 2018-01-08 22:50:52,272 [3 ] IdentityServer4.Hosting.EndpointRouter - No endpoint entry found for request path: /AbpUserConfiguration/GetAll INFO 2018-01-08 22:50:52,274 [3 ] entication.JwtBearer.JwtBearerMiddleware - Bearer was not authenticated. Failure message: No SecurityTokenValidator available for token: null WARN 2018-01-08 22:50:52,275 [3 ] n.IdentityServerAuthenticationMiddleware - No validator configured for reference token. Ensure ApiName and ApiSecret have been configured to use introspection. INFO 2018-01-08 22:50:52,275 [3 ] frastructure.NopAuthenticationMiddleware - Bearer was not authenticated. Failure message: No token found.

    My angularApp does not redirect to the login page anymore either. When I start opp it just showing a blank page.

  • 0
    bbakermmc created

    Did you redeploy the DB/run the migrations/seed?

  • 0
    alper created
    Support Team

    looks like a CORS problem!

    CORS request made for path: /AbpUserConfiguration/GetAll from origin: <a class="postlink" href="http://localhost:4200">http://localhost:4200</a> but rejected because invalid CORS path

    #4111@bb112b53-4ca3-47b3-aaa9-2c7d8dc379b6

  • 0
    affern created

    <cite>BBakerMMC: </cite> Did you redeploy the DB/run the migrations/seed?

    Yes, I did.

  • 0
    affern created

    <cite>alper: </cite> looks like a CORS problem!

    CORS request made for path: /AbpUserConfiguration/GetAll from origin: <a class="postlink" href="http://localhost:4200">http://localhost:4200</a> but rejected because invalid CORS path

    #4111@bb112b53-4ca3-47b3-aaa9-2c7d8dc379b6

    Yes, it looks like a CORS problem. But I can't find invalid path settings in the config files. I don't know how to solve this :(

  • 0
    affern created

    Ismcagdas, do you know how I can solve this? :geek: :)

  • 0
    ismcagdas created
    Support Team

    @affern can you check cookies on your browser ? There might be still old cookies and they can cause such problem. If you cannot solve this problem, can you share your app url and login credentials (for test purposes) via email ?

  • 0
    affern created

    @ismcagdas I have the same problem in my solution in Azure. And I have tried with different browsers with same result. But I send you the url to the solution in azure and also my log-file.

  • 0
    ismcagdas created
    Support Team

    @affern Thanks. I have replied your email. We can continue on email and write the solution here when we fix your problem.