39 lines
810 B
C#
39 lines
810 B
C#
using JNPF.Extras.CollectiveOAuth.Enums;
|
|
|
|
namespace JNPF.Extras.CollectiveOAuth.Config;
|
|
|
|
/// <summary>
|
|
/// Teambition.
|
|
/// </summary>
|
|
public class TeambitionAuthSource : IAuthSource
|
|
{
|
|
public string authorize()
|
|
{
|
|
return "https://account.teambition.com/oauth2/authorize";
|
|
}
|
|
|
|
public string accessToken()
|
|
{
|
|
return "https://account.teambition.com/oauth2/access_token";
|
|
}
|
|
|
|
public string userInfo()
|
|
{
|
|
return "https://api.teambition.com/users/me";
|
|
}
|
|
|
|
public string revoke()
|
|
{
|
|
throw new System.NotImplementedException();
|
|
}
|
|
|
|
public string refresh()
|
|
{
|
|
return "https://account.teambition.com/oauth2/refresh_token";
|
|
}
|
|
|
|
public string getName()
|
|
{
|
|
return DefaultAuthSourceEnum.TEAMBITION.ToString();
|
|
}
|
|
} |