how can the data be imported from Identity tables to OpenIddict tables without migration?
There is currently no way to do this.
1. Could you please provide the sample data (at least one entry with relations ) for below all tables or first 3 tables?
2. While I am sending token api post request from postman, I am getting below error, what could be the issue for this?
System.NullReferenceException: Object reference not set to an instance of an object.
at Volo.Abp.OpenIddict.Applications.OpenIddictApplicationExtensions.ToModel(OpenIddictApplication entity)
at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationStore.FindByClientIdAsync(String identifier, CancellationToken cancellationToken)
at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationCache.<>c__DisplayClass2_0.<<FindByClientIdAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.Caching.DistributedCache2.GetOrAddAsync(TCacheKey key, Func
1 factory, Func1 optionsFactory, Nullable
1 hideErrors, Boolean considerUow, CancellationToken token)
at Volo.Abp.OpenIddict.Applications.AbpOpenIddictApplicationCache.FindByClientIdAsync(String identifier, CancellationToken cancellationToken)
at OpenIddict.Core.OpenIddictApplicationManager1.FindByClientIdAsync(String identifier, CancellationToken cancellationToken) at OpenIddict.Core.OpenIddictApplicationManager
1.OpenIddict.Abstractions.IOpenIddictApplicationManager.FindByClientIdAsync(String identifier, CancellationToken cancellationToken)
at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateClientId.HandleAsync(ValidateTokenRequestContext context)
at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Server.OpenIddictServerHandlers.Exchange.ValidateTokenRequest.HandleAsync(ProcessRequestContext context)
at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Server.OpenIddictServerDispatcher.DispatchAsync[TContext](TContext context)
at OpenIddict.Server.AspNetCore.OpenIddictServerAspNetCoreHandler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at SCV.Litmus.Shared.DecryptHttpHeadersMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\ABP Upgrade_6\SCV.Litmus\aspnet-core\shared\SCV.Litmus.Shared\Middleware\DecryptHttpHeadersMiddleware.cs:line 50
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at SCV.Litmus.Shared.DecryptHttpRequestMiddleware.InvokeAsync(HttpContext context, RequestDelegate next) in C:\ABP Upgrade_6\SCV.Litmus\aspnet-core\shared\SCV.Litmus.Shared\Middleware\DecryptHttpRequestMiddleware.cs:line 101
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Volo.Abp.AspNetCore.Tracing.AbpCorrelationIdMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at SCV.Litmus.LitmusIdentityServerModule.<>c.<<OnApplicationInitialization>b__3_1>d.MoveNext() in C:\ABP Upgrade_6\SCV.Litmus\aspnet-core\microservices\SCV.Litmus.IdentityServer\LitmusIdentityServerModule.cs:line 183
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Localization.RequestLocalizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.RequestLocalization.AbpRequestLocalizationMiddleware.InvokeAsync(HttpContext context, RequestDelegate next)
at Microsoft.AspNetCore.Builder.UseMiddlewareExtensions.<>c__DisplayClass6_1.<<UseMiddlewareInterface>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddleware.Invoke(HttpContext context)
Accept: / Accept-Encoding: gzip, deflate, br Connection: keep-alive Content-Length: 132 Content-Type: application/x-www-form-urlencoded Host: localhost:44350 User-Agent: PostmanRuntime/7.29.2 __tenant: d1be844b-d3a2-031a-f036-39f5d4380239 Postman-Token: 9c42e329-4d30-40f8-82bc-db0704106cc2 X-Correlation-Id: d2e19d4a624240d0aeab51f8b6a33466
- Could you please tell me what could be the issue?
- Is dbmigrator will collect the data from IdentityServer tables and push in to OpenIdDict tables (Schema + Data)?
dbmigrator will only create Scopes and Applications in the template. they come from https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.DbMigrator/appsettings.json#L5
So you can change the
appsettings.json
and reseed your client from the identity server.
how can the data be imported from Identity tables to OpenIddict tables without migration?
The client(application) stores at
OpenIddictApplications
tables.Please check the logs to see the details error of
invalid_client
I have added the required values in the below tables.
but when I post the token request from Postman, I am getting the below error, 1. Could you please tell me what could be the issue? 2. Is dbmigrator will collect the data from IdentityServer tables and push in to OpenIdDict tables (Schema + Data)?
HI
You can migrator a new database and then check the tables of OpenIddict.
You need to add all scope names in postman.
Using DbMigrator only I have done the migration successfully (its showing tenant db seed also done successfully, but it didn't), see the below screen shot for the same, but the OpenIdDict related table is empty.
I have added all scope names in postman see below screen shot (in last screen shot I think its minimized)
Could you please let me know how to seed data from Identity Server tables (baked up) to OpenIdDict tables?
Hello,
You need to update the angular version to 14. ABP 6.0 version works with angular 14. You can update with
ng update
command.Also you need to install
@volo/abp.ng.openiddictpro
package.
@volo/abp.ng.openiddictpro
package?hi
There are detailed steps.
https://docs.abp.io/en/commercial/6.0/migration-guides/openIddict-step-by-step
Hi,
followed that guide for my Microservices Solution, For Angular Project, they mentioned only the change in "environment.ts" file, need to change the issuer url only as below. remaining all about backend core apis microservices solution.
but in Angular there is reference packages for Identity Server, saas, Lepton, Audilogs in "Package.json" and in other modules also, how to change those to OpenIdDict? (below are my Angular app reference screen shots)
hi
https://docs.abp.io/en/abp/latest/Migration-Guides/Abp-7_0 https://docs.abp.io/en/commercial/latest/migration-guides/v7_0
and how about Identity Server?
You can use Identity Server or migrator to OpenIddict.
https://docs.abp.io/en/abp/latest/Modules/OpenIddict https://docs.abp.io/en/abp/latest/Migration-Guides/OpenIddict-Step-by-Step https://docs.abp.io/en/commercial/latest/migration-guides/openIddict-step-by-step https://docs.abp.io/en/commercial/latest/modules/openiddict
Hi,
I have upgraded Dotnet Core to abp 6 and OpenIdDict migration also done.
Problem Statement - I ran abp update command only on dotnet core application not on anular initially, Now I am trying to run on Angular application, its giving No Solution/Project found in this directory, so to do this is there any alternatives rather than doing manually?
hi
The
abp update
command will only help you upgrade the version of the package, I suggest you manually update the package and other breaking changes.Can I update both (Angular + Dotnet Core) to Abp Version 7.0 directly at a time now?
is these are sufficient or any other required to update? and how about Identity Server?
hi
The
abp update
command will only help you upgrade the version of the package, I suggest you manually update the package and other breaking changes.
Can I update both (Angular + Dotnet Core) to Abp Version 7.0 directly at a time now?