Base solution for your next web application

Activities of "naurinrr"

Hi everyone,

I have enabled ms login succesfully but I need to get a token that can be passed to graph api and other react components I am using. Unfortunately there is no work around at the moment to providing the token and I have not been able to get the token. ExternalLoginInfo just has the isAuthenticated property.

Thanks in advance.

Hi,

I am using ASP NET .CORE MVC and Javascript version and have implemented using the following app settings;

"Microsoft": {
      "IsEnabled": "true",
      "ConsumerKey": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
      "ConsumerSecret": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
    }

I can login successfully but I can't get the token. I am using React componnent in MVC html pages.

Thank you

I found that if I enable saveTokens option then I get the token in ExternalLoginCallback method in ExternalLoginInfo but login manager does not add it to the loginResult.Identity or loginResult.User even though the user has a token property. Anyway to fix it?

The link to the issue returns page not found. How can I request Scope (API permissions) when logging in using external microsoft login?

How come I can't make graph api calls even after logging in using MS account? Can you please help as it is causing me major headache when trying to integrate with office 365. Thank you in advance.

Nevermind, I fixed it. Thanks

We are aiming to upgrade our jQuery UI to version 13.1 due to security concerns arising from known vulnerabilities in the previous version. However, we've encountered an obstacle: even with the latest version of blueimp-file-upload (10.32.0), it bundles an older version (1.12) of jQuery Widget. Consequently, this forces our package manager to install an outdated version of jQuery UI. Upon inspecting the source code for blueimp-file-upload, we've found that it's no longer supported. Unfortunately, without this package, the import functionality on the index pages ceases to work. Additionally, I've examined the code for ASP.NET ZERO 13, and it's still reliant on blueimp-file-upload. Could you please advise on the appropriate course of action to resolve this issue?

``Need some help changing the base test project. Our product has a requirement to inject the IWebHostEnvironment into CoreModule to conditionally set dependency resolution for an interface. We read the config to say whether to resolve to one type of provider or another. This works well except all the out-of-the-box tests (and new ones) are failing as I am not sure how to proceed.

Source: EditionAppService_Tests.cs line 31 Duration: 1 ms

Message:  Castle.MicroKernel.Handlers.HandlerException : Can't create component 'Project.Test.TestCoreModule' as it has dependencies to be satisfied.

'Project.Test.TestCoreModule' is waiting for the following dependencies:

  • Service 'Microsoft.AspNetCore.Hosting.IWebHostEnvironment' which was not registered.

Stack Trace:  DefaultHandler.AssertNotWaitingForDependency() DefaultHandler.ResolveCore(CreationContext context, Boolean requiresDecommission, Boolean instanceRequired, Burden& burden) DefaultHandler.Resolve(CreationContext context, Boolean instanceRequired) AbstractHandler.Resolve(CreationContext context) DefaultKernel.ResolveComponent(IHandler handler, Type service, Arguments additionalArguments, IReleasePolicy policy, Boolean ignoreParentContext) IKernelInternal.Resolve(Type service, Arguments arguments, IReleasePolicy policy, Boolean ignoreParentContext) DefaultKernel.Resolve(Type service, Arguments arguments) WindsorContainer.Resolve(Type service) IocManager.Resolve(Type type) AbpModuleManager.CreateModules(ICollection1 moduleTypes, List1 plugInModuleTypes) AbpModuleManager.LoadAllModules() AbpModuleManager.Initialize(Type startupModule) AbpBootstrapper.Initialize() AbpIntegratedTestBase1.InitializeAbp() AbpIntegratedTestBase1.ctor(Boolean initializeAbp, IIocManager localIocManager) AppTestBase`1.ctor() line 30 AppTestBase.ctor() EditionAppService_Tests.ctor() line 22 RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean wrapExceptions)

``Message: 
  System.InvalidOperationException : No suitable constructor was found for entity type 'HierarchyId'. The following constructors had parameters that could not be bound to properties of the entity type: 
      Cannot bind 'value' in 'HierarchyId(SqlHierarchyId value)'
  Note that only mapped properties can be bound to constructor parameters. Navigations to related entities, including references to owned types, cannot be bound.
 
Our app uses a Sql Server Type:Hierarchy Id to store hierarchical data and we have configured the options in the DbContextConfigurator.
 
public static void Configure(DbContextOptionsBuilder<DbContext> builder, string connectionString)
{
    builder.UseSqlServer(connectionString, conf => {
        conf.UseHierarchyId();
    });
}
 
public static void Configure(DbContextOptionsBuilder<DbContext> builder, DbConnection connection)
{
    builder.UseSqlServer(connection, conf => {
        conf.UseHierarchyId();
    });
}
 
Can you please advise how to change the base test project to handle this?
 

Showing 21 to 28 of 28 entries