2.0 breaking changes list
GrantTypes.Listremoved in favor ofICollection<string>forClient.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=>AddDeveloperSigningCredentialPublicOriginIResourceStore.GetAllResources=>IResourceStore.GetAllResourcesAsync- New
Clientproperties:- FrontChannelLogoutUri
- FrontChannelLogoutSessionRequired
- BackChannelLogoutUri
- BackChannelLogoutSessionRequired
- ConsentLifetime
GetIdentityServerUserAsyncgoneAddRequestedClaims/FilterClaimsAPIs for profile serviceIClientSessiontoIUserSession- Client claims prefix
- rename
ClientAssertionSecretParsertoJwtBearerClientAssertionSecretParser
no breaking - but needs docs
- AppAuthUriValidator
- Config schema
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.
and that is still the case...
Add AppAuth redirect URI validator
Add "schema" and docs for clients and resources from config
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 this is a standard issue in .net -- you need to add a direct reference to the assembly
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
Yep, it's gone.
@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.
We've not yet updated the token validation middlewares.
@brockallen thanks. Let us know then. Appreciate your product
@brockallen what should we use instead of GetIdentityServerUserAsync? Is it just HttpContext.User? thank you so much
Yes, HttpContext.User or HttpContext.AuthenticateAsync
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.
I am having the same sub claim issue, mentioned here.
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
Version 2.0.0-rc1 works fine for me !
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
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 Thanks!