Changes to parse the AuthProvider string case-insensitively