示例#1
0
 public static string GetAuthRedirectUrl(OAuthType authType, string redirectUrl)
 {
     return(Context.UtilsApi.GetApiUrl($"{LoginPlugin.PluginId}/auth/{authType.Value}/redirect?redirectUrl={HttpUtility.UrlEncode(redirectUrl)}"));
 }
示例#2
0
 public static string GetAuthRedirectUrl(OAuthType authType, string redirectUrl)
 {
     return($"{Context.Environment.ApiUrl}/{Plugin.PluginId}/auth/{authType.Value}/redirect?redirectUrl={HttpUtility.UrlEncode(redirectUrl)}");
 }
示例#3
0
 public static string GetAuthUrl(OAuthType type)
 {
     return(Context.UtilsApi.GetApiUrl($"{LoginPlugin.PluginId}/auth/{type.Value}"));
 }
示例#4
0
 public static string GetAuthUrl(OAuthType type)
 {
     return($"{Context.Environment.ApiUrl}/{Plugin.PluginId}/auth/{type.Value}");
 }