Browse Source
Merge pull request #4924 from lyonhan/dev
Spelling mistakes(Cliend => Client)
pull/4578/head
maliming
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
8 additions and
8 deletions
-
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Clients/ClientStore.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.Domain/Volo/Abp/IdentityServer/Clients/IClientRepository.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.EntityFrameworkCore/Volo/Abp/IdentityServer/Clients/ClientRepository.cs
-
modules/identityserver/src/Volo.Abp.IdentityServer.MongoDB/Volo/Abp/IdentityServer/MongoDB/MongoClientRepository.cs
-
modules/identityserver/test/Volo.Abp.IdentityServer.Domain.Tests/Volo/Abp/IdentityServer/CorsPolicyService_Tests.cs
-
modules/identityserver/test/Volo.Abp.IdentityServer.TestBase/Volo/Abp/IdentityServer/ClientRepository_Tests.cs
|
|
|
@ -17,7 +17,7 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
|
|
|
|
public virtual async Task<IdentityServer4.Models.Client> FindClientByIdAsync(string clientId) |
|
|
|
{ |
|
|
|
var client = await ClientRepository.FindByCliendIdAsync(clientId); |
|
|
|
var client = await ClientRepository.FindByClientIdAsync(clientId); |
|
|
|
return ObjectMapper.Map<Client, IdentityServer4.Models.Client>(client); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -9,7 +9,7 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
{ |
|
|
|
public interface IClientRepository : IBasicRepository<Client, Guid> |
|
|
|
{ |
|
|
|
Task<Client> FindByCliendIdAsync( |
|
|
|
Task<Client> FindByClientIdAsync( |
|
|
|
[NotNull] string clientId, |
|
|
|
bool includeDetails = true, |
|
|
|
CancellationToken cancellationToken = default |
|
|
|
@ -32,4 +32,4 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
CancellationToken cancellationToken = default |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -18,7 +18,7 @@ namespace Volo.Abp.IdentityServer.Clients |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<Client> FindByCliendIdAsync( |
|
|
|
public virtual async Task<Client> FindByClientIdAsync( |
|
|
|
string clientId, |
|
|
|
bool includeDetails = true, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
|
|
|
|
@ -21,7 +21,7 @@ namespace Volo.Abp.IdentityServer.MongoDB |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
public virtual async Task<Client> FindByCliendIdAsync( |
|
|
|
public virtual async Task<Client> FindByClientIdAsync( |
|
|
|
string clientId, |
|
|
|
bool includeDetails = true, |
|
|
|
CancellationToken cancellationToken = default) |
|
|
|
|
|
|
|
@ -35,7 +35,7 @@ namespace Volo.Abp.IdentityServer |
|
|
|
|
|
|
|
using (var uow = _unitOfWorkManager.Begin()) |
|
|
|
{ |
|
|
|
var client1 = await _clientRepository.FindByCliendIdAsync("ClientId1"); |
|
|
|
var client1 = await _clientRepository.FindByClientIdAsync("ClientId1"); |
|
|
|
client1.AddCorsOrigin("https://new-origin.com"); |
|
|
|
await _clientRepository.UpdateAsync(client1); |
|
|
|
|
|
|
|
|
|
|
|
@ -19,9 +19,9 @@ namespace Volo.Abp.IdentityServer |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
public async Task FindByCliendIdAsync() |
|
|
|
public async Task FindByClientIdAsync() |
|
|
|
{ |
|
|
|
(await clientRepository.FindByCliendIdAsync("ClientId2")).ShouldNotBeNull(); |
|
|
|
(await clientRepository.FindByClientIdAsync("ClientId2")).ShouldNotBeNull(); |
|
|
|
} |
|
|
|
|
|
|
|
[Fact] |
|
|
|
|