OpenIddict 4.x to 5.x Migration Guide
The 5.0 release of OpenIddict is a major release that introduces breaking changes.
Check this blog OpenIddict 5.0 general availability for the new features introduced in OpenIddict 5.0.
I will show the changes you need to make to do the migration.
Please backup your database before doing the migration.
OpenIddictApplication changes
- The
Type(string)
of theOpenIddictApplication
has been renamed toClientType(string)
. - The
ApplicationType(string)
has been added to theOpenIddictApplication
entity. - The
JsonWebKeySet(string)
has been added to theOpenIddictApplication
entity. - The
Settings(string)
has been added to theOpenIddictApplication
entity.
The new migration looks like this:
OpenIddictApplicationModel changes
- The
Type(string)
of theOpenIddictApplicationModel
has been renamed toClientType(string)
. - The
ApplicationType(string)
has been added to theOpenIddictApplicationModel
entity. - The
JsonWebKeySet
(JsonWebKeySet) has been added to theOpenIddictApplicationModel
entity. - The
Settings(string)
has been added to theOpenIddictApplicationModel
entity.
OpenIddictApplicationDescriptor changes
You have to change the Type
to ClientType
when creating a new AbpApplicationDescriptor
or OpenIddictApplicationDescriptor
.
OpenIddict Pro module UI changes
You can change the ApplicationType
when creating/editing a OpenIddict's application, also set time life of the tokens for each application.