summaryrefslogtreecommitdiffstats
path: root/src/DotNetOpenAuth.Web/IOAuthDataProvider.cs
blob: cf2d5768f6d6baffd3d602e60386677f0bb7df61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using System.Collections.Generic;

namespace DotNetOpenAuth.Web
{
    public interface IOAuthDataProvider
    {
        string GetUserNameFromOAuth(string oAuthProvider, string oAuthId);

        void CreateOrUpdateOAuthAccount(string oAuthProvider, string oAuthId, string userName);

        bool DeleteOAuthAccount(string oAuthProvider, string oAuthId);

        ICollection<OAuthAccount> GetOAuthAccountsFromUserName(string userName);
    }
}