Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "maliming"

JWT is self-contained with Claims. If you want to implement update claims, it will be very complicated.

I suggest you query based on user ID, etc. instead of storing it in claims(session).

By the way, jwt will show the cliams plain text to the client.

https://support.aspnetzero.com/QA/Questions/6721 Are these two questions one?

Is your authorization method a cookie or jwt?

This seems to be a problem with sql server.

Please make sure

  1. You have appropriate authentication mode enabled.
  2. You can connect to database using userid/password or windows auth.
  3. Whichever mode you connect has permission to create database.

Or you can try it with ef core cli: https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dotnet#dotnet-ef-database-update

Answer

@MellowoodMedical Can you share your project to: [email protected]?

Answer

please see: https://github.com/aspnetzero/aspnet-zero-core/issues/2261

Answer

Have you tried it according to the telerik document?

The background layout page is here: https://github.com/aspnetzero/aspnet-zero-core/tree/dev/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Mvc/Areas/AppAreaName/Views/Layout

It seems that there is no, You can take a look at this discussion:https://github.com/aspnetzero/aspnet-zero-core/issues/1256

@piapps

You can try modifying the DbContextFactory as follows:

Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT")

public class AbpZeroTemplateDbContextFactory : IDesignTimeDbContextFactory<AbpZeroTemplateDbContext>
{
	public AbpZeroTemplateDbContext CreateDbContext(string[] args)
	{
		var builder = new DbContextOptionsBuilder<AbpZeroTemplateDbContext>();
		var configuration = AppConfigurations.Get(WebContentDirectoryFinder.CalculateContentRootFolder(), Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"), addUserSecrets: true);

		AbpZeroTemplateDbContextConfigurer.Configure(builder, configuration.GetConnectionString(AbpZeroTemplateConsts.ConnectionStringName));

		return new AbpZeroTemplateDbContext(builder.Options);
	}
}
PM> $Env:ASPNETCORE_ENVIRONMENT = "Staging"
PM> $Env:ASPNETCORE_ENVIRONMENT
Staging
PM> Update-Database
Applying migration '20170406083347_Initial_Migration'.
Applying migration '20170623075109_AspNetZero_V4_1_Changes'.
Applying migration '20170704084731_Added_GoogleAuthenticatorKey_Column'.
Applying migration '20170714081027_Added_Relation_Between_Edition_And_SubscriptionPayment'.
Applying migration '20170724142223_Upgraded_To_Abp_V2_2'.
Applying migration '20170913133916_Added_SharedMessageId_To_ChatMessage'.
Applying migration '20170914070123_Added_ReceiverReadState_To_ChatMessage'.
Applying migration '20170914084815_Invoice_Changes'.
Applying migration '20170914121022_TypeChange_SharedMessageId_String_Guid'.
Applying migration '20180118065703_Added_Entity_History'.
Applying migration '20180320065710_Upgraded_To_Abp_V3_5'.
Applying migration '20180718081610_Abp_v3_7_Changes'.
Applying migration '20180726063233_Upgraded_ABP_v3.8.0'.
Applying migration '20180731052649_Upgrade_ABP_v3.8.1'.
Applying migration '20180807062930_Upgrade_ABP_v3.8.2'.
Applying migration '20181012141151_Upgraded_To_Abp_v3_9_0'.
Applying migration '20190103081952_Recurring_Payment_Changes'.
Applying migration '20190208083524_Upgraded_To_Abp_v4_2_0'.
Applying migration '20190304131651_Added_User_OrganizationUnits'.
Done.
PM> 

You can try this solution: https://entityframework.net/knowledge-base/48913968/net-core-2---entity-framework--update-database-of-different-environment

Related discussion: https://github.com/aspnet/EntityFrameworkCore/issues/7353

Showing 2441 to 2450 of 2998 entries