Skip to content

Commit

Permalink
renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Nov 24, 2023
1 parent 2950365 commit ddf667d
Show file tree
Hide file tree
Showing 57 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion MultiIdentityProvider/MultipleIdpApiClients.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Clients", "Clients", "{E7FC
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorOpenIddictClient", "RazorOpenIddictClient\RazorOpenIddictClient.csproj", "{C1F8CC2E-2106-47DA-94AB-A77DEF1DC120}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorAzureADClient", "RazorAzureADClient\RazorAzureADClient.csproj", "{6C3342E1-2FB2-4AED-BCC2-019A242A2003}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorMicrosoftEntraIDClient", "RazorMicrosoftEntraIDClient\RazorMicrosoftEntraIDClient.csproj", "{6C3342E1-2FB2-4AED-BCC2-019A242A2003}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorAuth0Client", "RazorAuth0Client\RazorAuth0Client.csproj", "{82DAFE0F-ED1F-46D8-8B6C-158919A9CFCC}"
EndProject
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using Serilog;
using Microsoft.IdentityModel.JsonWebTokens;

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.CallApiModel
@model RazorMicrosoftEntraID.Pages.CallApiModel
@{
ViewData["Title"] = "CallApi";
Layout = "~/Pages/Shared/_Layout.cshtml";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;

namespace RazorAzureAD.Pages;
namespace RazorMicrosoftEntraID.Pages;

[AuthorizeForScopes(Scopes = new string[] { "api://b2a09168-54e2-4bc4-af92-a710a64ef1fa/access_as_user" })]
public class CallApiModel : 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
Expand Up @@ -3,15 +3,15 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>@ViewData["Title"] - RazorAzureAD</title>
<title>@ViewData["Title"] - RazorMicrosoftEntraID</title>
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
<link rel="stylesheet" href="~/css/site.css" />
</head>
<body>
<header>
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
<div class="container">
<a class="navbar-brand" asp-area="" asp-page="/Index">RazorAzureAD</a>
<a class="navbar-brand" asp-area="" asp-page="/Index">RazorMicrosoftEntraID</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target=".navbar-collapse" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
Expand All @@ -38,7 +38,7 @@

<footer class="border-top footer text-muted">
<div class="container">
&copy; 2023 - RazorAzureAD
&copy; 2023 - RazorMicrosoftEntraID
</div>
</footer>

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
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
using RazorAzureAD;
using RazorMicrosoftEntraID;
using Serilog;

Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.CreateBootstrapLogger();

Log.Information("Starting up RazorAzureAD");
Log.Information("Starting up RazorMicrosoftEntraID");

try
{
var builder = WebApplication.CreateBuilder(args);

builder.Host.UseSerilog((context, loggerConfiguration) => loggerConfiguration
.WriteTo.Console(outputTemplate: "[{Timestamp:HH:mm:ss} {Level}] {SourceContext}{NewLine}{Message:lj}{NewLine}{Exception}{NewLine}")
.WriteTo.File("../_logs-RazorAzureAD.txt")
.WriteTo.File("../_logs-RazorMicrosoftEntraID.txt")
.Enrich.FromLogContext()
.ReadFrom.Configuration(context.Configuration));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"RazorAzureAD": {
"RazorMicrosoftEntraID": {
"commandName": "Project",
"launchBrowser": true,
"applicationUrl": "https://localhost:5001;http://localhost:5000",
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.Web;
using System.Net.Http.Headers;

namespace RazorAzureAD;
namespace RazorMicrosoftEntraID;

public class WebApiValuesService
{
Expand Down
2 changes: 1 addition & 1 deletion MultipleIdpApiClients.sln
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Clients", "Clients", "{E7FC
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorOpenIddictClient", "MultiIdentityProvider\RazorOpenIddictClient\RazorOpenIddictClient.csproj", "{C1F8CC2E-2106-47DA-94AB-A77DEF1DC120}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorAzureADClient", "MultiIdentityProvider\RazorAzureADClient\RazorAzureADClient.csproj", "{6C3342E1-2FB2-4AED-BCC2-019A242A2003}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorMicrosoftEntraIDClient", "MultiIdentityProvider\RazorAzureADClient\RazorMicrosoftEntraIDClient.csproj", "{6C3342E1-2FB2-4AED-BCC2-019A242A2003}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "RazorAuth0Client", "MultiIdentityProvider\RazorAuth0Client\RazorAuth0Client.csproj", "{82DAFE0F-ED1F-46D8-8B6C-158919A9CFCC}"
EndProject
Expand Down

0 comments on commit ddf667d

Please sign in to comment.