Remove usage of FromClaimsIdentity

This commit is contained in:
Mole
2021-02-17 11:50:19 +01:00
parent 80716a18d2
commit 33a99df73f
9 changed files with 56 additions and 57 deletions

View File

@@ -35,7 +35,7 @@ namespace Umbraco.Extensions
/// <returns>
/// Returns the current back office identity if an admin is authenticated otherwise null
/// </returns>
public static UmbracoBackOfficeIdentity GetCurrentIdentity(this HttpContext http)
public static ClaimsIdentity GetCurrentIdentity(this HttpContext http)
{
if (http == null) throw new ArgumentNullException(nameof(http));
if (http.User == null) return null; //there's no user at all so no identity