public static string GetAuthUrl(OAuthType type, string redirectUrl) { return($"/api/login/auth/{type.Value}?redirectUrl={HttpUtility.UrlEncode(redirectUrl)}"); }
public static string GetAuthRedirectUrl(string host, OAuthType authType, string redirectUrl) { return($"{host}/api/login/auth/{authType.Value}/redirect?redirectUrl={HttpUtility.UrlEncode(redirectUrl)}"); }
public static string GetAuthUrl(OAuthType type) { return($"/api/login/auth/{type.Value}"); }