- AppRegistrationResult discriminated result (Success/Failure/FallbackRequired) - TenantProfile.AppId nullable string for storing registered app ID - IAppRegistrationService interface (IsGlobalAdminAsync, RegisterAsync, RemoveAsync, ClearMsalSessionAsync) - AppRegistrationService: sequential registration with rollback, transitiveMemberOf admin check, MSAL eviction
17 lines
557 B
C#
17 lines
557 B
C#
namespace SharepointToolbox.Core.Models;
|
|
|
|
public class TenantProfile
|
|
{
|
|
public string Name { get; set; } = string.Empty;
|
|
public string TenantUrl { get; set; } = string.Empty;
|
|
public string ClientId { get; set; } = string.Empty;
|
|
public LogoData? ClientLogo { get; set; }
|
|
|
|
/// <summary>
|
|
/// The Azure AD application (client) ID registered for this tenant profile.
|
|
/// Null when no app registration has been performed yet.
|
|
/// Cleared to null after successful removal.
|
|
/// </summary>
|
|
public string? AppId { get; set; }
|
|
}
|