Skip to content

Commit

Permalink
Remove EFCore references
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Mar 9, 2024
1 parent c53395b commit 9093bca
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 52 deletions.
6 changes: 0 additions & 6 deletions IssueVerifiableEmployee/IssueVerifiableEmployee.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@
<PackageReference Include="Microsoft.Identity.Web" Version="2.17.1" />
<PackageReference Include="Microsoft.Identity.Web.GraphServiceClient" Version="2.17.1" />
<PackageReference Include="Microsoft.Identity.Web.UI" Version="2.17.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.2">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Configuration.ConfigurationManager" Version="8.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="8.0.2" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.1" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders" Version="0.21.0" />
<PackageReference Include="NetEscapades.AspNetCore.SecurityHeaders.TagHelpers" Version="0.21.0" />
Expand Down
43 changes: 0 additions & 43 deletions IssueVerifiableEmployee/Pages/PaginatedList.cs

This file was deleted.

2 changes: 1 addition & 1 deletion IssueVerifiableEmployee/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
var app = builder.Build();

app.UseSecurityHeaders(SecurityHeadersDefinitions
.GetHeaderPolicyCollection(env.IsDevelopment()));
.GetHeaderPolicyCollection(env.IsDevelopment()));


if (env.IsDevelopment())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ public MicrosoftGraphDelegatedClient(GraphServiceClient graphServiceClient)
var user = await _graphServiceClient.Users[oid]
.GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Select = new string[] {
requestConfiguration.QueryParameters.Select = [
"id", "givenName", "surname", "jobTitle", "displayName",
"mail", "employeeId", "employeeType", "otherMails",
"mobilePhone", "accountEnabled", "photo", "preferredLanguage",
"userPrincipalName", "identities"};
"userPrincipalName", "identities"];
requestConfiguration.Headers.Add("ConsistencyLevel", "eventual");
});

Expand Down

0 comments on commit 9093bca

Please sign in to comment.