Files
2023-03-13 15:00:34 +08:00

39 lines
736 B
C#

using JNPF.Extras.CollectiveOAuth.Enums;
namespace JNPF.Extras.CollectiveOAuth.Config;
/// <summary>
/// Gitee.
/// </summary>
public class GiteeAuthSource : IAuthSource
{
public string authorize()
{
return "https://gitee.com/oauth/authorize";
}
public string accessToken()
{
return "https://gitee.com/oauth/token";
}
public string userInfo()
{
return "https://gitee.com/api/v5/user";
}
public string revoke()
{
throw new System.NotImplementedException();
}
public string refresh()
{
throw new System.NotImplementedException();
}
public string getName()
{
return DefaultAuthSourceEnum.GITEE.ToString();
}
}