Base solution for your next web application

Activities of "james.marley"

Hello,

I am trying to setup a dynamic list of features based on rows in a database table. I know I can add in features through code as documented but I haven't found any examples where I can query a table and populate a list of features. My attempts at reading items from a repository have resulted in issues around sync and async on application start up.

I wanted to check that what I'm trying to do is possible/correct and if there is any guidance availabe on how to do this.

Thanks

  • version 9.2.0
  • MVC
  • .net core

I am having the issue described in the post below on both Chrome and Edge browsers but neither solution works for me. Can you offer any help?

https://support.aspnetzero.com/QA/Questions/9537/Solution-for-unable-to-log-in-via-http-in-the-new-chrome

Question

I'm trying to get Microsoft.Graph working within AspNetZero. I have OpenIdConnect authenticating against ADD and that is working well. A futher enhancement is some more integration with ADD for controlling access.

The requirement I have is to use a group in ADD that can allow or grant access to the application. So if a user wants to access the application the requirement is that they are part of a group in ADD. The reason for this is that our application will be in a corporate environment and the administration of users will be left to tenant administrators who are most likely system administrators within their organisation. For on-boarding new users a preferred workflow would be for a system administrator to assign a user to a group in ADD and instruct the new user that they can self register for access. In the opposite manner a user leaving the company could just be removed from the ADD group and then their access to the application will be removed.

The solution I am trying to implement is using Microsoft.Graph. I'm new to using Microsoft.Graph but I have followed through instructions from Microsoft and everything seems in order except that I am getting messages about not having permissions. I have all the API permissions setup in Azure that I should require but still cannot seem to find a simple way to connect.

I've got two questions regarding what I am trying to do.

  1. Is there a better way of accomplishing access being controlled through ADD groups?
  2. Is there any information in the solution about how to integrate with Microsoft.Graph? The ADD group stuff aside I could see being able to integrate with this service being of high value and I wonder if there is a way to create some more support within the application itself to setup.

Any advice is appreciated.

Question

Hi,

I'm looking for a pointer on enabling OpenId for the host system. I have the application configured to resolve the tenant through the URL subdomain which is working. I have also enabled and tested OpenId for tenants which again is working well.

What I'm not able to do is use OpenId to login as host. Is this possilble and if so could someone point me in the right direction - I could just be missing this in the documenation or the settings? I'm using the .NET Core MVC JQuery solution and running the latest version.

Thanks

Our azure pipeline is failing after upgrading our project from version 8.8 to version 8.9.2. We are getting the error message 'Specify which project file to use because this '/home/vsts/work/1/s' contains more than one project file' when installing entity framework in the pipeline using the command dotnet tool install --global dotnet-ef. So, we disabled the task and got another error at the NPM build stage SyntaxError in plugin "gulp-uglify-es".

To test out the build process I used the latest clean version of 8.9.2 without any of our code in just the standard boilerplate files and tried to run through the same pipeline which produced the same errors. I also did the same with version 8.8, again the boilerplate files with none of our code introduced, and this was successful.

Is there anything we are missing or have done wrong? The new version complies and runs on my local machine with the tests passing.

See build process steps below:

Question

I have some custom validation that I am trying to add to a CreateOrEditDto. As per the documentation I have implmented the ICustomValidate interface. I did a simple test where I add a Validation Result to the context results where I do a very basic check.

The validation result is added and I am presented with a message box that contains my error message and it does not submit the form which is fine.

I have two questions:

  1. In the form there is no translation for the error title or error narration. How do I go about adding this?
  2. There is an argument that can be passed to the ValidationResults constructor that takes a string IEnumerable of member names. What is the purpose of passing in this list of property names? I had assumed it would update the form showing the validation errors with the invalid form inputs but it doesn't do this.

I couldn't find anything specific in the documentation regarding the above two questions. Any advice on how this should work would be appreciated.

The code I have is below and a screen grab of the message box attached:

public void AddValidationErrors(CustomValidationContext context)
{
    if(Name == "Test")
    {
        context.Results.Add(new ValidationResult("This is a test", new [] { "Name" }));
    }
}

Not found response encountered when following Metronic download link on https://aspnetzero.com/Download 'Download Metronic v6.x' to https://github.com/aspnetzero/aspnet-zero-core/releases/download/v7.2.0/metronic_v6.0.6.zip

github invitation sent and accepted

Apologies if doing something silly

Many thanks

Showing 1 to 7 of 7 entries