Open Closed

Authenticate issue #8776


User avatar
0
Nathan created

Hi support team, I met the authenticate issue when I do separate authenticate URL and api call URL like: oAuthConfig authen: and api url:

And when I input the user and password then hit login button it redirect to this url: not go to home page like normally.

Could you tell me which part I am missing to config? Thanks team


8 Answer(s)
  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Hello,

    In order to better answer your question, I will ask you which template your application uses and if there is a ConfigureAuthentication method in the module class of the host project of your application, I will ask you to send it to its content.

    The problem seems to be related to redirectUri, but I am not completely sure, I am forwarding other answers below that I think may be related to the subject, you can look here:

    • https://abp.io/support/questions/6712/OpendIdConnect-Configuration-with-multitenant-url#answer-3a10dcb3-cabf-fa0e-c374-f50c76e013b8
    • https://abp.io/support/questions/6712/OpendIdConnect-Configuration-with-multitenant-url#answer-3a10ddcb-e5a3-5b16-673d-6e0360262643
  • User Avatar
    0
    Nathan created

    Hello,

    In order to better answer your question, I will ask you which template your application uses and if there is a ConfigureAuthentication method in the module class of the host project of your application, I will ask you to send it to its content.

    The problem seems to be related to redirectUri, but I am not completely sure, I am forwarding other answers below that I think may be related to the subject, you can look here:

    • https://abp.io/support/questions/6712/OpendIdConnect-Configuration-with-multitenant-url#answer-3a10dcb3-cabf-fa0e-c374-f50c76e013b8
    • https://abp.io/support/questions/6712/OpendIdConnect-Configuration-with-multitenant-url#answer-3a10ddcb-e5a3-5b16-673d-6e0360262643

    Hi currently, I am using abp framework version 9.0 with angular. I am using multiple tenant with tenant resolver. here is the configureAuthenticate:

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Can you specify what is the url when you are redirected to the login screen after clicking the login button from your application.

  • User Avatar
    0
    Nathan created

    Here is the url when I press login button: https://idp.preprod.eduverse.vision:44347/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%3Fresponse_type%3Dcode%26client_id%3DEduverse_App%26state%3DcHcwRzdlNWtxUH5kWlFNN083NS1WLTRNMHVYQ3RYaEtoTnI2cm9GWktWSUpo%26redirect_uri%3Dhttp%253A%252F%252Fpreprod.eduverse.vision%253A4200%26scope%3Dopenid%2520offline_access%2520Eduverse%26code_challenge%3DJWIdQaJS8xBVcyaZuCkKLLBjAp12QWbWhCgKNKBSsvQ%26code_challenge_method%3DS256%26nonce%3DcHcwRzdlNWtxUH5kWlFNN083NS1WLTRNMHVYQ3RYaEtoTnI2cm9GWktWSUpo%26culture%3Den%26ui-culture%3Den

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    Thank you for the information. There doesn't seem to be a problem with the URL. After detailed examination of your problem, I started to think that the problem might be related to Angular or even angular-oauth2-oidc library. Here are some reasons:

    • https://github.com/abpframework/abp/issues/17106
    • https://github.com/abpframework/abp/issues/17061
    • https://github.com/manfredsteyer/angular-oauth2-oidc/issues/1415
    • https://github.com/manfredsteyer/angular-oauth2-oidc/pull/1463

    So I'm assigning the problem to a friend from the Angular team, who will help you if there is a problem on our side, and even try to suggest a workaround solution if possible.

  • User Avatar
    0
    Nathan created

    Hi Berkansasmaz, some reasons you give me above just about the clear iss after login or something like that and they still able to see the home page. But my issue is after I login seem the authService can not callback then access to the homepage when I using 2 URL like I mentioned. Pls help me on that.

  • User Avatar
    0
    berkansasmaz created
    Support Team .NET Developer

    But my issue is after I login seem the authService can not callback then access to the homepage when I using 2 URL like I mentioned.

    As far as I understand from below picture, I see that you are redirected to the Angular application. Isn't that right? Where exactly are you redirected after logging in?

  • User Avatar
    0
    Nathan created

    HI, sorry for late response. Yes after login successfully I will redirect to FE link

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.2.0-preview. Updated on March 20, 2025, 18:00