2020-10-23 14:18:53 +11:00
|
|
|
|
using Microsoft.AspNetCore.Http;
|
2021-02-18 11:06:02 +01:00
|
|
|
|
using Umbraco.Cms.Core.Security;
|
2020-10-23 14:18:53 +11:00
|
|
|
|
|
|
|
|
|
|
namespace Umbraco.Extensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class HttpContextExtensions
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void SetExternalLoginProviderErrors(this HttpContext httpContext, BackOfficeExternalLoginProviderErrors errors)
|
|
|
|
|
|
=> httpContext.Items[nameof(BackOfficeExternalLoginProviderErrors)] = errors;
|
|
|
|
|
|
|
|
|
|
|
|
public static BackOfficeExternalLoginProviderErrors GetExternalLoginProviderErrors(this HttpContext httpContext)
|
|
|
|
|
|
=> httpContext.Items[nameof(BackOfficeExternalLoginProviderErrors)] as BackOfficeExternalLoginProviderErrors;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|