public static string GetBearerToken( this AuthenticationHeaderValue authorizationHeaderValue) { authorizationHeaderValue.NotNull("authorizationHeaverValue"); if (!authorizationHeaderValue.IsEmptyOrBearer()) { return(string.Empty); } return(authorizationHeaderValue.Parameter.IsNullOrEmpty() ? authorizationHeaderValue.Scheme : authorizationHeaderValue.Parameter); }