initial commit
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
using Indotalent.Infrastructure.Authentication.Identity;
|
||||
using Microsoft.Extensions.Options;
|
||||
|
||||
namespace Indotalent.Infrastructure.Authentication.Firebase;
|
||||
|
||||
public class FirebaseService(IOptions<IdentitySettingsModel> options)
|
||||
{
|
||||
private readonly IdentitySettingsModel _settings = options.Value;
|
||||
|
||||
public IdentitySettingsModel GetConfiguration() => _settings;
|
||||
|
||||
public FirebaseSettingsModel GetDefaultAdmin() => _settings.SsoFirebase;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
namespace Indotalent.Infrastructure.Authentication.Firebase;
|
||||
|
||||
public class FirebaseSettingsModel
|
||||
{
|
||||
public bool IsUsed { get; set; }
|
||||
public bool OpenForPublic { get; set; }
|
||||
public string ApiKey { get; set; } = string.Empty;
|
||||
public string AuthDomain { get; set; } = string.Empty;
|
||||
public string ProjectId { get; set; } = string.Empty;
|
||||
public string StorageBucket { get; set; } = string.Empty;
|
||||
public string MessagingSenderId { get; set; } = string.Empty;
|
||||
public string AppId { get; set; } = string.Empty;
|
||||
}
|
||||
Reference in New Issue
Block a user