maliming
7 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
5 additions and
5 deletions
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Auth/AuthService.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/CliConsts.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Licensing/AbpIoApiKeyService.cs
-
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/ProjectBuilding/TemplateInfoProvider.cs
|
|
|
@ -47,7 +47,7 @@ public class AuthService : IAuthService, ITransientDependency |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
var url = $"{CliUrls.WwwAbpIo}api/license/login-info"; |
|
|
|
var url = $"{CliUrls.AccountAbpIo}api/license/login-info"; |
|
|
|
|
|
|
|
var client = CliHttpClientFactory.CreateClient(); |
|
|
|
|
|
|
|
@ -130,7 +130,7 @@ public class AuthService : IAuthService, ITransientDependency |
|
|
|
|
|
|
|
public async Task<bool> CheckMultipleOrganizationsAsync(string username) |
|
|
|
{ |
|
|
|
var url = $"{CliUrls.WwwAbpIo}api/license/check-multiple-organizations?username={username}"; |
|
|
|
var url = $"{CliUrls.AccountAbpIo}api/license/check-multiple-organizations?username={username}"; |
|
|
|
|
|
|
|
var client = CliHttpClientFactory.CreateClient(); |
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ public static class CliConsts |
|
|
|
|
|
|
|
public static string GithubHttpClientName = "GithubHttpClient"; |
|
|
|
|
|
|
|
public static string LogoutUrl = CliUrls.WwwAbpIo + "api/license/logout"; |
|
|
|
public static string LogoutUrl = CliUrls.AccountAbpIo + "api/license/logout"; |
|
|
|
|
|
|
|
public static string LicenseCodePlaceHolder = @"<LICENSE_CODE/>"; |
|
|
|
|
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class AbpIoApiKeyService : IApiKeyService, ITransientDependency |
|
|
|
return _apiKeyResult; |
|
|
|
} |
|
|
|
|
|
|
|
var url = $"{CliUrls.WwwAbpIo}api/license/api-key"; |
|
|
|
var url = $"{CliUrls.AccountAbpIo}api/license/api-key"; |
|
|
|
var client = _cliHttpClientFactory.CreateClient(); |
|
|
|
|
|
|
|
using (var response = await client.GetHttpResponseMessageWithRetryAsync(url, CancellationTokenProvider.Token, _logger)) |
|
|
|
|
|
|
|
@ -88,7 +88,7 @@ public class TemplateInfoProvider : ITemplateInfoProvider, ITransientDependency |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
var url = $"{CliUrls.WwwAbpIo}api/license/check-user"; |
|
|
|
var url = $"{CliUrls.AccountAbpIo}api/license/check-user"; |
|
|
|
var client = _cliHttpClientFactory.CreateClient(); |
|
|
|
|
|
|
|
using (var response = await client.GetHttpResponseMessageWithRetryAsync(url, CancellationTokenProvider.Token, Logger)) |
|
|
|
|