IdentityServer4 icon indicating copy to clipboard operation
IdentityServer4 copied to clipboard

2.0 breaking changes list

Open brockallen opened this issue 9 years ago • 31 comments

  • GrantTypes.List removed in favor of ICollection<string> for Client.AllowedGrantTypes
  • Stores no longer expected to remote stale items; no longer check expiration; #1135
  • Add reminder that DI order is also important (e.g. they want to customize cookies)
  • federated signout is now different
  • now using default authN scheme
  • AddTemporarySigningCredential => AddDeveloperSigningCredential
  • PublicOrigin
  • IResourceStore.GetAllResources => IResourceStore.GetAllResourcesAsync
  • New Client properties:
    • FrontChannelLogoutUri
    • FrontChannelLogoutSessionRequired
    • BackChannelLogoutUri
    • BackChannelLogoutSessionRequired
    • ConsentLifetime
  • GetIdentityServerUserAsync gone
  • AddRequestedClaims/FilterClaims APIs for profile service
  • IClientSession to IUserSession
  • Client claims prefix
  • rename ClientAssertionSecretParser to JwtBearerClientAssertionSecretParser

no breaking - but needs docs

  • AppAuthUriValidator
  • Config schema

brockallen avatar Apr 12 '17 15:04 brockallen

Are there any other changes to 2.0?

I thought the "pseudo"-typed GrantTypes.List was there to prevent people from choosing allowed granttypes that could result in unfavorable scenarios from a security perspective.

Lutando avatar Aug 02 '17 08:08 Lutando

and that is still the case...

leastprivilege avatar Aug 02 '17 08:08 leastprivilege

Add AppAuth redirect URI validator

leastprivilege avatar Sep 02 '17 12:09 leastprivilege

Add "schema" and docs for clients and resources from config

leastprivilege avatar Sep 03 '17 18:09 leastprivilege

I have the following issue: Reference to type 'AuthenticationOptions' claims it is defined in 'Microsoft.AspNetCore.Authentication', but it could not be found.

here: app.UseIdentityServerAuthentication(new IdentityServerAuthenticationOptions...

I have: "IdentityServer4" Version="2.0.0-preview4" "IdentityServer4.AccessTokenValidation" Version="1.2.1"

vitalbsk avatar Sep 04 '17 03:09 vitalbsk

@vitalbsk this is a standard issue in .net -- you need to add a direct reference to the assembly

brockallen avatar Sep 04 '17 03:09 brockallen

Have a call to HttpContext.GetIdentityServerUserAsync() but getting a build error. Started happening post asp.net core 2.0. I believe this is the thread to add the issues too? Error: HttpContext does not contain a definition for GetIdentityServerUserAsync and no extension method GetIdentityServerUserAsync accepting a first argument of type HttpContext

pwen090 avatar Sep 04 '17 08:09 pwen090

Yep, it's gone.

brockallen avatar Sep 04 '17 11:09 brockallen

@brockallen I cannot add the direct reference IdentityServer4.AccessTokenValidation.dll: "The reference is not valid or unsupported".

I added the project "AccessTokenValidation" to my solution and added it as a reference to my project then and I have the same issue: Reference to type 'AuthenticationOptions' claims it is defined in 'Microsoft.AspNetCore.Authentication', but it could not be found.

I don't know why it doesn't work. I see extension method in your project but I have no idea why it cannot find it.

vitalbsk avatar Sep 04 '17 18:09 vitalbsk

We've not yet updated the token validation middlewares.

brockallen avatar Sep 04 '17 18:09 brockallen

@brockallen thanks. Let us know then. Appreciate your product

vitalbsk avatar Sep 04 '17 18:09 vitalbsk

@brockallen what should we use instead of GetIdentityServerUserAsync? Is it just HttpContext.User? thank you so much

pwen090 avatar Sep 04 '17 21:09 pwen090

Yes, HttpContext.User or HttpContext.AuthenticateAsync

brockallen avatar Sep 04 '17 21:09 brockallen

This is missing .AddAspNetIdentity<ApplicationUser>() maybe it's not needed, but if this thread is to collect changes, that is one. (2.0.0-rc1)

P.S. I'm struggling to piece together a code that works, there doesn't seem to be any sample. Currently I'm getting Sub claim is missing error.

Ciantic avatar Sep 05 '17 09:09 Ciantic

I am having the same sub claim issue, mentioned here.

jimmymain avatar Sep 05 '17 09:09 jimmymain

P.S. I'm struggling to piece together a code that works, there doesn't seem to be any sample. Currently I'm getting Sub claim is missing error.

Our sample host is the main working sample for now: https://github.com/IdentityServer/IdentityServer4/tree/dev/src

And if you need ASP.NET Identity: https://github.com/IdentityServer/IdentityServer4.AspNetIdentity/tree/dev/src

brockallen avatar Sep 05 '17 12:09 brockallen

Version 2.0.0-rc1 works fine for me !

brunorenn avatar Sep 08 '17 21:09 brunorenn

Versin 2.0.0-RC1 works for me except:

.AddConfigurationStore(builder => builder.UseSqlServer(conString, options => options.MigrationsAssembly(migrationsAssembly))) .AddOperationalStore(builder => builder.UseSqlServer(conString, options => options.MigrationsAssembly(migrationsAssembly)))

shauliz avatar Sep 11 '17 12:09 shauliz

@shauliz

There were some changes to IdentityServer/IdentityServer4.EntityFramework. You can implement it similar to the example that you find here:

https://github.com/IdentityServer/IdentityServer4.EntityFramework/blob/bd1ba47635a980a77853826bb05d445cbde49f63/src/Host/Startup.cs#L36-L56

That one worked for me.

StefanKert avatar Sep 11 '17 12:09 StefanKert

@StefanKert Thanks!

shauliz avatar Sep 16 '17 15:09 shauliz