IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

EntityFramework.Storage project update AutoMapper to version 12 so that it works with .NET 7.

Open Thomas-Skomra opened this issue 4 years ago • 15 comments

Hello, I'm getting issues with IS4 running on .NET 7 It is easily resolved by updating AutoMapper to version 12 in the EntityFramework.Storage project. Can this be done please? The error is: GenericArguments[0], 'System.Char', on 'T MaxFloatT' violates the constraint of type 'T'.

AutoMapper team fixed this in version 12: https://github.com/AutoMapper/AutoMapper/issues/3988

Thanks

Thomas-Skomra avatar Nov 11 '22 14:11 Thomas-Skomra

Important update

This organization is not maintained anymore besides critical security bugfixes (if feasible). This organization will be archived when .NET Core 3.1 end of support is reached (3rd Dec 2022). All new development is happening in the new Duende Software organization.

The new Duende IdentityServer comes with a commercial license but is free for dev/testing/personal projects and companies or individuals making less than 1M USD gross annnual revenue. Please get in touch with us if you have any question.

leastprivilege avatar Nov 11 '22 16:11 leastprivilege

@Mani4k You may try my fork and build your own packages https://github.com/twenzel/IdentityServer4/tree/feature/UpdateNet7 or you grab a license and migrate to Duende IdentityServer (recommended)

twenzel avatar Nov 15 '22 21:11 twenzel

Thanks @twenzel!

BTW @leastprivilege, last time I checked it's not 12/03/2022 yet.

IMHO, it will be better for your Duendes' marketing to leave this repository updated.

SantosVictorero avatar Nov 16 '22 17:11 SantosVictorero

This organization is not maintained anymore besides critical security bugfixes (if feasible).

Updating AutoMapper is not a security bug fix (though some might disagree ;))

leastprivilege avatar Nov 16 '22 18:11 leastprivilege

Agreed, but I don't use AutoMapper; IdentityServer4.EntityFramework.Storage.csproj does:

https://github.com/SantosVictorero/IdentityServer4-7/blob/feature/UpdateNet7/src/EntityFramework.Storage/src/IdentityServer4.EntityFramework.Storage.csproj

Probably it was fixed because of a security problem. ;-)

SantosVictorero avatar Nov 16 '22 19:11 SantosVictorero

Every new .Net release includes security fixes. No one expects a new feature to be added to this project but should support Net 7.

MCKanpolat avatar Nov 18 '22 10:11 MCKanpolat

Every new .Net release includes security fixes. No one expects a new feature to be added to this project but should support Net 7.

We announced over 2 years ago that we stop working on this code base unless a critical security bug in our code needs to be fixed. This repo will be archived in 3 weeks. Time to move on.

The new code base lives here: https://github.com/DuendeSoftware/IdentityServer

..and there is a free license if that's what is holding back. https://duendesoftware.com/products/communityedition

leastprivilege avatar Nov 18 '22 11:11 leastprivilege

Every new .Net release includes security fixes. No one expects a new feature to be added to this project but should support Net 7.

We announced over 2 years ago that we stop working on this code base unless a critical security bug in our code needs to be fixed. This repo will be archived in 3 weeks. Time to move on.

The new code base lives here: https://github.com/DuendeSoftware/IdentityServer

..and there is a free license if that's what is holding back. https://duendesoftware.com/products/communityedition

Thanks, if i'm going to spend some time for migration, my preference is to finding a new alternatives.

MCKanpolat avatar Nov 18 '22 11:11 MCKanpolat

@leastprivilege The concern, many people like me have, it is not about free or money, but what happens if you change the rules in the middle of the game, again! When we build a customized solution for a client, they expect us to keep it current and updated. I can not tell them: Sorry Microsoft updated their framework but Dominic wants $12, 000.00 to update his thing, so I have to increase your support fee.

SantosVictorero avatar Nov 18 '22 15:11 SantosVictorero

@SantosVictorero But you cannot expect doing work for free. It‘s the „risk“ of using a free Open Source library. The owner/maintainer can stop maintain its project out of the sudden. You don’t have a (service) contract with them to force them to update it regularity. Dominik and Brock were kind to announce the retirement of this library long ago (years).

The used license allows you to fork and maintain the code on your own (please respect the license details). But you won‘t get any new features unless you put a huge amount of time to unterstand the specs (respect to @leastprivilege and @brockallen ) and build up wisdom in the Security domain.

twenzel avatar Nov 18 '22 17:11 twenzel

but what happens if you change the rules in the middle of the game, again!

You are raising a very good point here. With a real company and a real license/contract you can negotiate things like this just like with any other vendor you have. And we are happy to give you reasonable guarantees.

If you depend on someone's hobby project, you will not get any guarantees whatsoever.

leastprivilege avatar Nov 18 '22 21:11 leastprivilege

BTW, I didn't know that Identity Server was a "hobby project"!

If I knew that, I had done something of my own. I have been building "hobbies" for the past 40 years. 8-)

https://www.nuget.org/packages?q=cyberbizsoft

SantosVictorero avatar Nov 18 '22 23:11 SantosVictorero

I am trying to upgrade IdentityServer4 to .NET 7. The CI has passed. See https://github.com/cnblogs/IdentityServer4/pull/1

cnblogs-dudu avatar Nov 19 '22 13:11 cnblogs-dudu

AutoMapper has been updated in Cnblogs.IdentityServer4.EntityFramework.Storage

cnblogs-dudu avatar Nov 20 '22 03:11 cnblogs-dudu

BTW, I didn't know that Identity Server was a "hobby project"!

Not to put words in Dominick's mouth, but I think his use of that term means that this is a project we worked on in our free time outside of our normal work hours, which included nights, weekends, and holidays. Formal support is not something we contractually agreed to do with just anyone because they happened to use our code or our NuGet package.

We did offer to do our best to support things up to a point, but after several years of significant, and non-trivial unpaid effort we announced that we'd end free work on this repo and replace it with a new organization intended to provide sustainable and ongoing development, upgrades, maintenance, samples, documentation, and support in exchange for a license fee. That announcement was more than two years ago, and we assumed that would be enough time for anyone depending on this library to plan accordingly.

As a bridge (or a stopgap depending on your situation), we did say we'd patch any security vulnerabilities that came up within the transition period (if feasible) on this old code base. Fortunately none have been reported or been made known to us.

But for future use on updated platforms from Microsoft, the Duende version is the successor.

brockallen avatar Nov 20 '22 05:11 brockallen