Activities of "dfzamora"

Hello, I have applied the change and this works:

Even thought, in my case I do not want to use backend login, I'd like to use the frontend side login instead, since I have customized some stuff in the frontend side, is this possible? If I remove responseType: 'code' it turns into frontend login

This is frontend login

This is backend login

The goal is to be able to have a URL to login (then the URL should redirect to azure login) and another URL to login using user and password (this is only for admins)

  • ABP Framework version: v8.2.1

  • UI Type: Angular

  • Database System: EF Core (SQL Server)

  • Tiered (for MVC) or Auth Server Separated (for Angular): no

  • Exception message and full stack trace: Microsoft.AspNetCore.Authentication.AuthenticationFailureException: An error was encountered while handling the remote login. ---> Microsoft.AspNetCore.Authentication.AuthenticationFailureException: Unable to unprotect the message.State. --- End of inner exception stack trace ---

  • Steps to reproduce the issue:

Hello, I've followed this article How to Setup Azure Active Directory and Integrate ABP Angular Application in order to integrate Azure AD as IDP in my application, after successfully login with my Microsoft account I got the error

I haven't been able to figure out what is the reason of the error, this is the configuration that I have in appsettings

This is the code in the method ConfigureAuthentication in ApiHostModule file

This is what I have in the frontend side

Azure has been configured as well

Do you have an idea of what is going on? I am not sure if this is related to ABP configuration, Thanks for your time!

Hello, Based on your replies, definitely there is no way to change account/login URL, for now, I will go with my solution, since the complement replacement doesn't fit my requirement, thanks for the support, I will close the ticket.

In summary what I was looking for is to change the default url (in the frontend project) account/loginby something like auth/login, from my understanding the Account module from Abp relies on the accountroute to redirect when the user is not logged in, in the end this is what I had to do, to overcome my requirenments

  1. Overrided the route account/login to show a custom component which is going to redirect to a SAML Login App
  2. Loaded account module (this is the default line that comes with the project)
  3. Loaded account module under the route account/admin to allow the admin the ability to login using the default login (the one with openId)

This is correctly working, but I am concerned about the double load of Account module, is there another way to do the same?

Hello I have been trying to implement SAML authentication in my app, I have created a controller in the Auth Server which is going to do the redirect to an Azure App with SAML Auth enabled.

For now the Angular app redirects to account/login (plus the parameter of ReturnUrl) when the user is not logged in, this is something I would like to change, I would like to redirect to a custom URL of the Auth server, I do not want to remove the OpenId login since there are some users that are going to log in through that login and some others are login through SAML, the goal is to redirect to the custom URL by default when the user is not logged in, and show the login page of Abp only when the user writes the URL in the browser.

I have configured oAuthConfig ResponseType = token

  • ABP Framework version: v8.2
  • UI Type: Angular
  • Database System: EF Core (SQL Server)
  • Auth Server Separated (for Angular): yes

Hello, I created a custom layout for my application using this example https://docs.abp.io/en/commercial/latest/themes/lepton-x/how-to-use-lepton-x-components-with-angular-custom-layout Even thought I have noticed, the PerfectScrollBar is not working at all, I have tried the directive lpxPerfectScrollbar and [perfectScrollbar] but both are not working

Am I missing configuration? Any idea?

  • ABP Framework version: v8.0.4
  • UI Type: Angular

Hello I was able to generate the token, I had to include the expire date, not a null value, thanks for the support, however the issue is now on angular side,

When I try to validate the token with OAuthService.hasValidAccessToken() it returns false, as far as I can see AuthGuard of abp is using that method internally, for that reason the routes are not active and I am not able to login even with the token

I am not sure about the real issue since I have tested the token in ThunderClient and the API responds correctly to it.

hi

Are you calling your app service method from the authserver website?

Because this options set by auth server website

Hello, I moved the code to the right project, now I am able to generate the token, however when I try to use that token in my API calls the response is Unauthorized, am I missing something else?

I have followed the example you posted, even though I have an error and it seems like I am not getting the right values from IOptionsMonitor<OpenIddictServerOptions>

I am not sure if this error is because of a missing configuration on my side.

Hello, I am using OpenIddict as Auth Server

Showing 1 to 10 of 11 entries
Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13