diff --git a/IntuneDriveMapping/Models/DriveMappingModel.cs b/IntuneDriveMapping/Models/DriveMappingModel.cs index f126054..befc0a3 100644 --- a/IntuneDriveMapping/Models/DriveMappingModel.cs +++ b/IntuneDriveMapping/Models/DriveMappingModel.cs @@ -23,23 +23,4 @@ public class DriveMappingModel [Display(Name = "Security Group Filter")] public string GroupFilter { get; set; } } - - public class AadAppRegistration - { - [Required] - [Display(Name = "Tenant ID")] - [RegularExpression(@"^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$", ErrorMessage = "Specify your tenant ID")] - public string TenantId { get; set; } - [Required] - [Display(Name = "Client ID")] - [RegularExpression(@"^(\{{0,1}([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}\}{0,1})$", ErrorMessage = "Specify your client ID")] - public string ClientId { get; set; } - [Required] - [Display(Name = "Client secret")] - public string ClientSecret { get; set; } - - public string Scope { get; } = "https://graph.microsoft.com/.default"; - - public string GrantType { get; } = "client_credentials"; - } } diff --git a/IntuneDriveMapping/Views/DriveMapping/AzureAppRegistration.cshtml b/IntuneDriveMapping/Views/DriveMapping/AzureAppRegistration.cshtml deleted file mode 100644 index b4e1996..0000000 --- a/IntuneDriveMapping/Views/DriveMapping/AzureAppRegistration.cshtml +++ /dev/null @@ -1,41 +0,0 @@ -@model IntuneDriveMapping.Models.AadAppRegistration - -@{ - ViewData["Title"] = "CreateAzureAppRegistration"; - Layout = "~/Views/Shared/_Layout.cshtml"; -} - -