initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Indotalent.Infrastructure.Authentication.Identity;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Indotalent.Infrastructure.Authentication.Keycloak;
|
||||
|
||||
public class KeycloakService(IOptions<IdentitySettingsModel> options)
|
||||
{
|
||||
private readonly IdentitySettingsModel _settings = options.Value;
|
||||
|
||||
public IdentitySettingsModel GetConfiguration() => _settings;
|
||||
|
||||
public KeycloakSettingsModel GetPasswordPolicy() => _settings.SsoKeycloak;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Indotalent.Infrastructure.Authentication.Keycloak;
|
||||
|
||||
public class KeycloakSettingsModel
|
||||
{
|
||||
public bool IsUsed { get; set; }
|
||||
public string Authority { get; set; } = string.Empty;
|
||||
public string ClientId { get; set; } = string.Empty;
|
||||
public string ClientSecret { get; set; } = string.Empty;
|
||||
public string RequireHttpsMetadata { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user