39 lines
745 B
C#
39 lines
745 B
C#
using JNPF.Extras.CollectiveOAuth.Enums;
|
|
|
|
namespace JNPF.Extras.CollectiveOAuth.Config;
|
|
|
|
/// <summary>
|
|
/// 淘宝.
|
|
/// </summary>
|
|
public class TaobaoAuthSource : IAuthSource
|
|
{
|
|
public string authorize()
|
|
{
|
|
return "https://oauth.taobao.com/authorize";
|
|
}
|
|
|
|
public string accessToken()
|
|
{
|
|
return "https://oauth.taobao.com/token";
|
|
}
|
|
|
|
public string userInfo()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string revoke()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string refresh()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return DefaultAuthSourceEnum.TAOBAO.ToString();
|
|
}
|
|
} |