Base solution for your next web application

Activities of "huntethan89"

Hi @ismcagda, Thank you for providing the solution, But I have noticed that, when I am using base URL so for authentication its going on LogIn method inside my application after that microsoft logIn page is opening, but when I am using any relative URL other than base URL, it's not going on Login method for authentication, by default its opening microsoft login page. So how we can configure that, every URL will go on LogIn method inside my application first if not authenticated.

Any insights or suggestions would be greatly appreciated.

Thanks,

Hi @ismcagdas No, This is the only error we can able to see.

Thanks,

Hello team,

Our base URL is set to 'http://localhost:6240', and I have encountered a problem when attempting to access URLs beyond the base, such as 'http://localhost:6240/Mpa/Timesheet'. The issue manifests as an infinite loop, preventing successful navigation to the desired URLs.

To provide more context, our authentication and authorization are implemented using Azure AD OpenID Connect. I have reviewed our configuration settings and code, but the problem persists.

I have attached an image of the issue that I am encountering every time while trying to login

Could you kindly assist in troubleshooting this issue or guide me on potential areas to investigate further? Any insights or suggestions would be greatly appreciated.

Error1.png

Hi, I am using BatchDeleteAsync() to delete multiple rows in table based on the condition in predicate, but it will hard delete all rows. Please check the below screenshot.

I want to soft-delete the same by setting IsDeleted = 1. I can use DeleteAsync method but it's for the single entity and needs loop for the condition-based deletion. I found the method BatchUpdateAsync() which can be used to update multiple rows based on predicate. So, I just want to know how it can be implemented in place of the above attached query. I am getting issues while setting the predicate and update expression in its parameters.

Hi, I was implementing the BulkUpdateAsync() method to update entities based on the condition but didn't find a way to implement it while passing parameters updateExpression and predicate. Could you please help me with this with an example?

Hi,

Thanks for your quick response. It's working now, there was an issue with the Redis server running in background. I want to save the data on Redis server or cloud but I am not able to save the data on Redis server using Net Zero in-built cache manager. I have also tried with AbpPerRequestRedisCacheManager. Could you please let me know whether the project has in-built functions or interface to save data in Redis server or we need to implement it on our own?

Hi,

I have done all the configurations to enable redis in AspNetZero Core project as per the docs. I am using latest version of Net Zero. I am getting the errors while starting project. Below are the screenshots of the error and the configurations.

Error

appsettings configurations

Enabling redis in startup.cs

Hi, Following are the two APIs which are not working when authenticating user externally using provider and providerAccessCode.

  1. The API TokenAuth > GetExternalAuthenticationProviders() return null even if the external login (Google) is successfully integrated in the application.
  2. The method CreateProviderApi in ExternalAuthManager class is giving exception for "Unknown external auth provider". As I checked the code for this from github, it seems like ExternalAuthConfiguration.Providers is not returning the provider info for the provider's name passed as parameter.

Could you please check and assist how to proceed?

reference:

  • Internal code which is not returning the provider info for the provider name.

  • method call which returns exception

Hi Team,

Let me explain the real scenario. We are building iOS native app (using Swift) and enabling social authentications for Google, Microsoft, and Facebook from the app only. On the other side, we are building a web application (using asp.net zero) to perform some operations via API only. My question is as follows

  1. How can we generate the access token in server side (aspnet zero) for the user which already been authenticated via native app?
  2. Will TokenAuth >> ExternalAuthenticator work on the above scenarios?
  3. We are getting Error Unknown external auth provider: Google
  4. From where we should get the providerAccessCode (Google, Microsoft and Facebbok) for ExternalAuthenticator API

{ "authProvider": "string", "providerKey": "string", "providerAccessCode": "string", "returnUrl": "string", "singleSignIn": true }

Please suggest to us how can we do that OR can you give us some direction on this?

Showing 1 to 10 of 186 entries