Base solution for your next web application

Activities of "admin@SYNTAQ"

I have successfully implemented a notification for a custom Entity using the subscription model . The notification shows to the user when the page is refreshed. However I want the notification to be delivered realtime and are not sure of how to proceed. Can you advise the steps I am missing?

I have tried everthing as discussed in this article https://aspnetboilerplate.com/Pages/Documents/Notification-System

Thanks,

Thanks,

User Id 3 is hardwired (but is the user with the subscription to this notification). The notification shows to user 3 if the page is refreshed

        var userIds = new List<UserIdentifier>();
        userIds.Add(new UserIdentifier(null, 3));

        var messagecontent = "Test";
        var message = new MessageNotificationData($"Item Updated. {messagecontent}");

        await _notificationPublisher.PublishAsync(
            AppNotificationNames.ScheduleItemUpdated,
            message,
            new EntityIdentifier(typeof(TeamScheduleItem), 
            (Guid)input.Id), 
            userIds: userIds.ToArray()
        );

Is there an existing library in ASPNETZero for viewing filetypes such as Pdfs or word Documents in browser, or can you recommend a library that might do this?

Also, is there a library to view images in a gallery or similar?

Thanks

Hi,

On reading you documentation I understand that the AD integration is intended for single tenancy model. However one of our tenants requires AD integration, in our model we do not have the option of deploying a dedicated single tenant implementaion just for this client.

There is an existing artcle on your support site that mentions "By default, you can use LDAP is single tenant mode but it is possible to use it multi-tenant mode if you would like to by changing a few lines of code." Article

Can you provide some information on what these lines of code are. And in general how to approach our use case?

Thanks,

https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Features-Mvc-Core-Social-Logins

Do you have more information or guides on setting up Azure AD.

Namely the

"Authority": "", "ClientId": "", "ClientSecret": "",

Can you provide any guidance on integration with Azure Active Directory B2C https://docs.microsoft.com/en-us/azure/active-directory-b2c/overview and AspNetZero.

I understand you will not havea solution out of the bag but some pointers could save many hours.

Thanks

Hi,

I have added custom authorization policies to the startup.cs. They work for the MVC controllers but not the API controllers. Where SHould I configure these so that they work for both?

Ver 8.1 Angular .Net Core

        services.AddAuthorization(options =>
        {
            options.AddPolicy("ViewById", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("View", "Id")));
            options.AddPolicy("EditById", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("Edit", "Id")));
            options.AddPolicy("DeleteById", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("Delete", "Id")));

            options.AddPolicy("ViewByOriginalId", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("View", "IdOriginal")));
            options.AddPolicy("EditByOriginalId", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("Edit", "IdOriginal")));
            options.AddPolicy("DeleteByOriginalId", policy => policy.Requirements.Add(new SyntaqAuthorizationRequirement("Delete", "IdOriginal")));

        });

Thanks

Cheers

Yes.

Question

hi,

Any pointers on the steps to implement KTWizard in the Angular Version. I have found the wizard.js in the assets but am unclear on the next steps.

Cheers

Thanks,

have configured the settings as below. The OpenId connect button appears on the login screen but nothing happens. (I replaced the values in the json..).

No errors in the console, no messages in the Audit log. The login button just seems to have a link to /Account/Login#

"OpenId": {
  "IsEnabled": "true",
  "Authority": "https://[TenantName].b2clogin.com/tfp/[TenantID]/b2c_1_signin/v2.0/",
  "LoginUrl": "https://[TenantName].b2clogin.com/tfp/[TenantName].onmicrosoft.com/B2C_1_signupsignin1/oauth2/v2.0/authorize",
  "ClientId": "[ClientId]",
  "ClientSecret": "[ClientSecret]",
  "ValidateIssuer": "false",
  "ClaimsMapping": [
    {
      "claim": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
      "key": "http://schemas.microsoft.com/identity/claims/objectidentifier"
    }
  ]
}
Showing 1 to 10 of 66 entries