Browse Source

IdentityClientOptions to AbpIdentityClientOptions

pull/1919/head
Yunus Emre Kalkan 7 years ago
parent
commit
45e27cd85f
  1. 4
      framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/AbpIdentityClientOptions.cs
  2. 2
      framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/AbpIdentityModelModule.cs
  3. 4
      framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityModelAuthenticationService.cs

4
framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityClientOptions.cs → framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/AbpIdentityClientOptions.cs

@ -1,10 +1,10 @@
namespace Volo.Abp.IdentityModel namespace Volo.Abp.IdentityModel
{ {
public class IdentityClientOptions public class AbpIdentityClientOptions
{ {
public IdentityClientConfigurationDictionary IdentityClients { get; set; } public IdentityClientConfigurationDictionary IdentityClients { get; set; }
public IdentityClientOptions() public AbpIdentityClientOptions()
{ {
IdentityClients = new IdentityClientConfigurationDictionary(); IdentityClients = new IdentityClientConfigurationDictionary();
} }

2
framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/AbpIdentityModelModule.cs

@ -13,7 +13,7 @@ namespace Volo.Abp.IdentityModel
{ {
var configuration = context.Services.GetConfiguration(); var configuration = context.Services.GetConfiguration();
Configure<IdentityClientOptions>(configuration); Configure<AbpIdentityClientOptions>(configuration);
} }
} }
} }

4
framework/src/Volo.Abp.IdentityModel/Volo/Abp/IdentityModel/IdentityModelAuthenticationService.cs

@ -19,11 +19,11 @@ namespace Volo.Abp.IdentityModel
public class IdentityModelAuthenticationService : IIdentityModelAuthenticationService, ITransientDependency public class IdentityModelAuthenticationService : IIdentityModelAuthenticationService, ITransientDependency
{ {
public ILogger<IdentityModelAuthenticationService> Logger { get; set; } public ILogger<IdentityModelAuthenticationService> Logger { get; set; }
protected IdentityClientOptions ClientOptions { get; } protected AbpIdentityClientOptions ClientOptions { get; }
protected ICancellationTokenProvider CancellationTokenProvider { get; } protected ICancellationTokenProvider CancellationTokenProvider { get; }
public IdentityModelAuthenticationService( public IdentityModelAuthenticationService(
IOptions<IdentityClientOptions> options, IOptions<AbpIdentityClientOptions> options,
ICancellationTokenProvider cancellationTokenProvider) ICancellationTokenProvider cancellationTokenProvider)
{ {
CancellationTokenProvider = cancellationTokenProvider; CancellationTokenProvider = cancellationTokenProvider;

Loading…
Cancel
Save