TheIdentityHub.AspNet 2.1.0

dotnet add package TheIdentityHub.AspNet --version 2.1.0
NuGet\Install-Package TheIdentityHub.AspNet -Version 2.1.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TheIdentityHub.AspNet" Version="2.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TheIdentityHub.AspNet --version 2.1.0
#r "nuget: TheIdentityHub.AspNet, 2.1.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install TheIdentityHub.AspNet as a Cake Addin
#addin nuget:?package=TheIdentityHub.AspNet&version=2.1.0

// Install TheIdentityHub.AspNet as a Cake Tool
#tool nuget:?package=TheIdentityHub.AspNet&version=2.1.0

ASP.NET Library for The Identity Hub

The Identity Hub makes it easy to connect your app to all major identity providers like Microsoft, Facebook, Google, Twitter, Linked In & more.

This NuGet Package allows you to connect to The Identity Hub with a few simple lines of code.

Documentation and examples


Try The Identity Hub for Free

What's new


Initial Version


Added support for roles


Added support for non WS-Federation Web Sites




Added SignOut method on HubAuthenticationModule Added UseSession config parameter: When true, if the browser is closed and reopened the user will no longer be signed in.


Added compensateForIOSCookieLimit appSetting. When true compensated for IOS/IPad/Safari cookie limitations.


Using UTF8 in stead of ASCII. User Roles are now available on current thread user.​ Cache optimizations.


The compensateForIOSCookieLimit appSetting has been removed. Compensation for IOS/IPad/Safari cookie limitations is always active.


The identity id's of merged identities are now available through the SDK. The SDK now supports deleting the identity of the currently logged on user. The SDK now support updating the identity of the currently logged on user (email, surname, givenname).


Added useIdentification appSetting. When true the user is identified upon returning to the site (not authenticated and if user was authenticated on previous visit) without the need to authenticate. Added identificationExpires appSetting. The number of minutes the identification of a user is valid before the user must authenticate. The ASP.NET SDK now supports securing services (Web API and WCF) via Basic Authentication. The ASP.NET SDK now supports authenticating a user via a service call.


The ASP.NET SDK now supports securing services (Web API and WCF) for Apps via Client Credentials.

See for demo app


Added SignOut method HubAuthenticationModule(string returnUrl) to perform SLO with The Identity Hub.


Fix cookie expiration issue.


Added Properties property to Profile containing the custom mapped info. Claims of the ClaimsIdentity now contain the custom mapped info.


AuthenticationStrength is now returned using the TheIdentityHub.IdentityService.GetAccessTokenDataAsync() method


Added new CreateAuthenticateRedirectUrl methods on TheIdentityHub.HubAuthenticationModule for allowing to sign in with specific account provider and specific reply url.


Added new ExpiresOn extension method that returns the date and time in UTC that the authentication of the current user expires (if available).


Allow introspection between clients of same Tenant


Upgrade to .NET 4.7.2 and set SameSite on cookies


Upgrade to .NET 4.8. Don't save profile information as cookie. Update Newtonsoft.Json version 13. Remove usage of friends functionality.


Copyright 2024 U2U Consult NV/SA

Product Compatible and additional computed target framework versions.
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.1.0 131 1/30/2024
2.0.0 753 1/28/2020
1.19.0 609 10/3/2019
1.18.0 602 7/16/2019
1.17.0 593 7/8/2019
1.15.0 1,145 3/28/2018
1.14.0 952 11/2/2017
1.13.0 1,052 7/26/2017
1.10.0 1,795 1/26/2017
1.9.0 992 1/9/2017
1.8.0-rc 846 10/24/2016
1.7.0 1,049 6/8/2016
1.6.0 986 5/13/2016
1.5.0 1,168 10/16/2015
1.4.0 1,088 5/22/2015
1.3.0 1,096 4/10/2015
1.2.0 1,331 1/23/2015
1.1.0 1,273 11/19/2014
1.0.3 1,112 10/28/2014
1.0.2 1,053 10/28/2014
1.0.1 1,067 10/28/2014
1.0.0 1,078 10/27/2014

Upgrade to .NET 4.8 and set SameSite on cookies