public static AuthorizationRequest GetAuthorizationRequest(this HttpActionContext context) => new AuthorizationRequest { RequestType = context.GetRequestType(), User = context.ControllerContext.RequestContext.Principal, Url = context.Request.RequestUri, QueryString = new QueryString(context.Request.GetQueryNameValuePairs()) };