Today's the day: new ASOS and OpenIddict packages (compatible with ASP.NET Core 1.0 and 2.0) have just been pushed to NuGet.org:
- AspNet.Security.OpenIdConnect.Server – 1.0.2 (for ASP.NET Core 1.x)
- AspNet.Security.OpenIdConnect.Server – 2.0.0-rc1-final (for ASP.NET Core 2.x)
- Owin.Security.OpenIdConnect.Server – 1.0.2 (for OWIN/Katana 3.x)
- Owin.Security.OpenIdConnect.Server – 2.0.0-rc1-final (for OWIN/Katana 4.x)
- OpenIddict – 1.0.0-rc1-final (for ASP.NET Core 1.x)
- OpenIddict – 2.0.0-rc1-final (for ASP.NET Core 2.x)
What's new?
In AspNet.Security.OpenIdConnect.Server and Owin.Security.OpenIdConnect.Server 1.0.2
- Calling
context.HandleResponse()
from theSerializeAuthorizationCode
,SerializeAccessToken
,SerializeIdentityToken
andSerializeRefreshToken
events no longer throws an exception if the authentication ticket is not explicitly set (c734c6f). - An invalid exception message mentioning OpenIddict was reworded (cd83912).
- The authorization code/access token/identity token/refresh token deserialization methods are no longer called twice for introspection and revocation requests that specify a
token_type_hint
that doesn't match the actual token type (c561a34). - A standard-compliant
Expires
HTTP header is now returned by the non-interactive ASOS endpoints (5af1d44). - New constants have been added to
OpenIdConnectConstants
(0980fb8) (461ecd4). - New events allowing to control the sign-in, sign-out and challenge operations have been introduced (d95810b) (3801427).
In AspNet.Security.OpenIdConnect.Server 2.0.0-rc1-final
OpenIdConnectServerProvider
can now be resolved from the DI container
Good news: OpenIdConnectServerProvider
can now be used with dependency injection thanks to a huge refactoring of the ASP.NET Core 2.0 authentication stack, that now implements the options-based pattern I recommended.
To use constructor-injected dependencies in your provider, you can ask ASOS to resolve the provider instance at request-time by setting the new OpenIdConnectServerOptions.ProviderType
option (which is a wrapper around AuthenticationSchemeOptions.EventsType
):
1 | public class AuthorizationProvider : OpenIdConnectServerProvider |
1 | public class Startup |
Such feature requires built-in support in the authentication stack and thus, is unfortunately not available in the OWIN/Katana version of ASOS 2.x.
In Owin.Security.OpenIdConnect.Server 2.0.0-rc1-final
The OWIN/Katana version of ASOS 2.x now requires targeting the Microsoft.Owin
4.0.0-alpha1
packages, which are natively compatible with IdentityModel 5.2.0-preview1 (unlike the previous iteration).
In OpenIddict 1.0.0-rc1-final and 2.0.0-rc1-final
OpenIddict 1.0.0-rc1-final/2.0.0-rc1-final is the first public version of OpenIddict. To learn more about the changes added since the first betas, don't hesitate to take a look at the GitHub repository.