Skip to content

Commit

Permalink
MICROSOFT_ENTRA_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Nov 24, 2023
1 parent 3ea1514 commit 7e6c5ff
Show file tree
Hide file tree
Showing 16 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Microsoft.IdentityModel.Logging;
using Serilog;

namespace RazorAzureAD;
namespace RazorMicrosoftEntraID;

internal static class HostingExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model RazorAzureAD.Pages.ApplicationApiModel
@model RazorMicrosoftEntraID.Pages.ApplicationApiModel
@{
ViewData["Title"] = "ApplicationApi";
Layout = "~/Pages/Shared/_Layout.cshtml";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[Authorize]
public class ApplicationApiModel : PageModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model RazorAzureAD.Pages.ApplicationFailApiModel
@model RazorMicrosoftEntraID.Pages.ApplicationFailApiModel
@{
ViewData["Title"] = "ApplicationFailApi";
Layout = "~/Pages/Shared/_Layout.cshtml";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[Authorize]
public class ApplicationFailApiModel : PageModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model RazorAzureAD.Pages.DelegatedApiModel
@model RazorMicrosoftEntraID.Pages.DelegatedApiModel
@{
ViewData["Title"] = "DelegatedApi";
Layout = "~/Pages/Shared/_Layout.cshtml";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Identity.Web;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[AuthorizeForScopes(Scopes = new string[] { "api://b2a09168-54e2-4bc4-af92-a710a64ef1fa/access_as_user" })]
public class DelegatedApiModel : PageModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model RazorAzureAD.Pages.DelegatedFailApiModel
@model RazorMicrosoftEntraID.Pages.DelegatedFailApiModel
@{
ViewData["Title"] = "DelegatedFailApi";
Layout = "~/Pages/Shared/_Layout.cshtml";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.Identity.Web;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[AuthorizeForScopes(Scopes = new string[] { "api://b2a09168-54e2-4bc4-af92-a710a64ef1fa/access_as_user" })]
public class DelegatedFailApiModel : PageModel
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
public class ErrorModel : PageModel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Mvc.RazorPages;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

public class IndexModel : PageModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@using RazorAzureAD
@using RazorMicrosoftEntraID
@using NetEscapades.AspNetCore.SecurityHeaders
@namespace RazorAzureAD.Pages
@namespace RazorMicrosoftEntraID.Pages
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
2 changes: 1 addition & 1 deletion MicrosoftEntraIDMultiApis/TestMultiApis/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using RazorAzureAD;
using RazorMicrosoftEntraID;
using Serilog;

Log.Logger = new LoggerConfiguration()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Builder;

namespace RazorAzureAD;
namespace RazorMicrosoftEntraID;

public static class SecurityHeadersDefinitions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Identity.Client;
using System.Net.Http.Headers;

namespace RazorAzureAD;
namespace RazorMicrosoftEntraID;

public class MultiTenantApplicationApiService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using Microsoft.Identity.Web;
using System.Net.Http.Headers;

namespace RazorAzureAD;
namespace RazorMicrosoftEntraID;

public class SingleTenantApiService
{
Expand Down

0 comments on commit 7e6c5ff

Please sign in to comment.