Base solution for your next web application
Open Closed

Initial login URL incorrect #9547


User avatar
0
gjubber created

Prerequisites

  • Using version 8.9.2
  • Angular
  • net core 3.1

Issue

Please note, the following does not happen on my development environment

After I have deployed the code to the development environment, I would expect the default login URL to be (as it's been on various other implementations):

https://<domain>/account/login

But it keeps opening the following:

https://<domain>/Ui/Login

Furthermore, once I eventually worked around the login issue and finally get to the app, where I can create a role for example, I am confrusted with the following error when trying to POST or PUT any data

ERROR 2020-08-24 07:05:40,637 [40   ] idateAntiforgeryTokenAuthorizationFilter - The required antiforgery header value "X-XSRF-TOKEN" is not present.
Microsoft.AspNetCore.Antiforgery.AntiforgeryValidationException: The required antiforgery header value "X-XSRF-TOKEN" is not present.
   at Microsoft.AspNetCore.Antiforgery.DefaultAntiforgery.ValidateRequestAsync(HttpContext httpContext)
   at Abp.AspNetCore.Mvc.Antiforgery.AbpValidateAntiforgeryTokenAuthorizationFilter.OnAuthorizationAsync(AuthorizationFilterContext context)

Why is it navigating to https://<domain>/Ui/Login. Identity server is not being utilised and I have no idea why it's pointing to the controller/view

Any help would be greatly appreaciated!! Kind regards


2 Answer(s)
  • User Avatar
    0
    gjubber created

    So it would seem that the latest version of aspnet-zero has a HomeController. This dictates the path which it will follow. One should keep in mind that Development, is subjective to the environment. Thus Development could also refer to a development server. Which in this cause, caused allot of issues, because it point to the wrong location (Ui/Login).

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @gjubber

    Thanks for the feedback. This is only implemented for single solution of Angular project.