17 lines
611 B
C#
17 lines
611 B
C#
namespace SharepointToolbox.Web.Services.Auth;
|
|
|
|
public interface IAppRegistrationService
|
|
{
|
|
/// <summary>
|
|
/// 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).
|
|
/// </summary>
|
|
Task<string> CreateAsync(
|
|
string adminAccessToken,
|
|
string tenantName,
|
|
string redirectUri,
|
|
CancellationToken ct = default);
|
|
}
|