namespace SharepointToolbox.Web.Services.Auth; public interface IAppRegistrationService { /// /// Creates an Entra ID app registration in the target tenant using a delegated admin token /// (requires Application.ReadWrite.All + DelegatedPermissionGrant.ReadWrite.All scope). /// Grants org-wide admin consent for SharePoint + Graph delegated permissions. /// Returns the new app's client ID (appId). /// Task CreateAsync( string adminAccessToken, string tenantName, string redirectUri, CancellationToken ct = default); }