39 lines
777 B
C#
39 lines
777 B
C#
using JNPF.Extras.CollectiveOAuth.Enums;
|
|
|
|
namespace JNPF.Extras.CollectiveOAuth.Config;
|
|
|
|
/// <summary>
|
|
/// Coding扣钉.
|
|
/// </summary>
|
|
public class CodingAuthSource : IAuthSource
|
|
{
|
|
public string authorize()
|
|
{
|
|
return "https://coding.net/oauth_authorize.html";
|
|
}
|
|
|
|
public string accessToken()
|
|
{
|
|
return "https://coding.net/api/oauth/access_token";
|
|
}
|
|
|
|
public string userInfo()
|
|
{
|
|
return "https://coding.net/api/account/current_user";
|
|
}
|
|
|
|
public string revoke()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string refresh()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return DefaultAuthSourceEnum.CODING.ToString();
|
|
}
|
|
} |