Base solution for your next web application

Activities of "p.j.keukens"

Question

Hi,

I'm using Aspnetzero 6.9 for .NET Core + JQuery.

In my application I've enabled Swagger which is working fine. The only problem is that for the return object it shows the actual object that is returned from the method but aspnet zero encapsulates the object in a default response.

For example if we have simple get operation that returns a list of cars like

public List<Car> GetCars()

Then in Swagger the response message will look like:

{
    "cars": [
        { "name": "Tesla Model 3" },
        { "name": "Opel Empera-E"}
    ]
}

But the actual response is:

{
    "result": {
        "cars": [
            {
                "name": "Telsa Model 3"
            },
            {
                "name": "Opel Ampera-E",
            },
        ]
    },
    "targetUrl": null,
    "success": true,
    "error": null,
    "unAuthorizedRequest": false,
    "__abp": true
}

So is there a way to add the default return object to the response in swagger ui so that it corresponds to the actual returned result?

Best regards,

Patrick

Hi,

I'm using the aspnet zero .net core and jquery version 6.9, I've just added swagger to my project which is working fine. But I would like swagger to only show a few of the actions. For example I would only like to show "api/TokenAuth/Authenticate" and "api/Cars/GetAll". There are more calls that are used by the application and that are generated which is fine but I don't want them to appear in the public swagger api definition.

Is there a way to configure which methods show up in Swagger (but still generate all api's as they are needed by the web application)?

Best regards,

Patrick

Question

Hi,

We are using v6.9.0 of the asp.net zero .net core + jquery.

The problem arrises when a host user logs in to the application and impersonates a user, this is all fine but when the host user logs-out (while impersonating a user) of the application the host user can't login again because it says that the tenant is not active. Removing the cookies resolves the problem and the user can login again.

The problem is the Abp.TenantId cookie doesn't get cleared/removed on logout. Please advice on how to resolve.

Best regards,

Patrick

Hi,

I have a problem with auditing. I have several classes that have auditing enabled but only some of them are actually audited.

All my entityclasses have FullAuditedEntity and the classes have the Audited attribute.

Also when I go to the change logs there are only 5 object types and not all entities that have the audited attribute are showing up.

Am I missing something?

Hi,

I have a question. In my code we are getting a list of tenants (without the deleted tenants) but we want to include the user that owns the tenant and we want to include it even if it is deleted.

so basically we are doing this:

var query = TenantManager.Tenants .Include(t => t.Edition) .Include(t => t.TenantOwnerUser)

so I want to disable the softdelete filter but only for the include of TenantOwnerUser.

Is this possible and if so how would I do that?

Hi,

We have setup an application using aspnetzero v6.9 using .net core mvc and jquery.

Now there is another system that would like to make a connection to our application. The other system would need to make a webservice call (insert data) on behalf of a tenant. Not all AppService calls should be available just a specific call.

How would I set that up within the current configuration.

At this moment we are not using the Host project. Should I use the host project or would it be recommended to set it up in the mvc app that is running. How would the users authenticate to use the API?

If anyone could point me in the right direction that would be appreciated.

Best regards Patrick

Hi,

I'm using AspnetZero version 6.9 .Net Core + jquery and I'm having a problem with sweetalert or rather abp.localize.

When I localize a string containing a single or double quote, it doesn't render properly.

For example in my resource xml I've got this string (ps. here I've placed a space between the ampersand and the text otherwise it would render the quoate or single quote):

<text name="DocumentDeleteWarningMessage">Are you sure you want to delete document & quot;{0}& apos;?</text>

Now when I use

abp.localize(DocumentDeleteWarningMessage)

it shows "Are you sure you want to delete document \"test\u0027?"

It shows like this in the sweetalert box:

Using ' or " in the xml doesn't help as well it doesn't render properly.

Please help me to solve this problem as it is not very user friendly

Question

Hi,

When you add a user but the email address allready exists then you receive an error message, the message is not localized, how can I add an localized error message for this error.

The secons question is where is the check to determine if there is allready a user with the given email address, which function generates the error?

Cheers Patrick

Hi,

I'm facing a reproducable error in the .net core + jquery version 6.9 of asp.net zero.

Start both the mvc app and the public facing website. When you use the public website to login you get redirected to the admin site, login and you are redirected back to the public website. Then when you press the logout button on the public website you are faced with an error.

Please resolve this issue.

Best regards Patrick

Hi,

In the admin site we are using the subdomain system to identify specific tenants.

Now we are setting up the public website but when they click the login button users can only login as host users, so tenant users are locked out. Is there any solution to this?

Best regards Patrick

Showing 1 to 10 of 18 entries