Blog.Common.Web.Attributes.BlogApiAuthorizationAttribute.Authenticate C# (CSharp) Method

Authenticate() private method

private Authenticate ( System.Web.Http.Filters.HttpAuthenticationContext context ) : bool
context System.Web.Http.Filters.HttpAuthenticationContext
return bool
        private bool Authenticate(HttpAuthenticationContext context)
        {
            try
            {
                var user = context.Principal.Identity;
                return user.IsAuthenticated;
            }
            catch (Exception ex)
            {
                ErrorSignaler.SignalFromCurrentContext(ex);
                throw new BlogException(ex.Message, ex.InnerException);
            }
        }
    }
BlogApiAuthorizationAttribute