/// <summary> /// This method supports the framework directly and should not be used from your code /// </summary> /// <param name="handler">The handler.</param> /// <param name="context">The context.</param> /// <returns><c>true</c></returns> public static bool Impl(IOptionalAuthentication handler, IContext context) { var authenticationProvider = SimpleWeb.Configuration.AuthenticationProvider ?? new DefaultAuthenticationProvider(); handler.CurrentUser = authenticationProvider.GetLoggedInUser(context); return(true); }
/// <summary> /// This method supports the framework directly and should not be used from your code /// </summary> /// <param name="handler">The handler.</param> /// <param name="context">The context.</param> /// <returns><c>true</c></returns> public static bool Impl(IOptionalAuthentication handler, IContext context) { var authenticationProvider = SimpleWeb.Configuration.AuthenticationProvider ?? new DefaultAuthenticationProvider(); handler.CurrentUser = authenticationProvider.GetLoggedInUser(context); return true; }