public string GetUserNameFromOpenAuth(string openAuthProvider, string openAuthId)
        {
            ExtendedMembershipProvider provider = VerifyProvider();

            int userId = provider.GetUserIdFromOAuth(openAuthProvider, openAuthId);

            if (userId == -1)
            {
                return(null);
            }

            return(provider.GetUserNameFromId(userId));
        }
Esempio n. 2
0
        public string GetUserNameFromOpenAuth(string openAuthProvider, string openAuthId)
        {
            ExtendedMembershipProvider provider = VerifyProvider();

            if (openAuthProvider.Equals("trello", StringComparison.OrdinalIgnoreCase))
            {
                return(openAuthId);
            }

            int userId = provider.GetUserIdFromOAuth(openAuthProvider, openAuthId);

            if (userId == -1)
            {
                return(null);
            }

            return(provider.GetUserNameFromId(userId));
        }