Skip to content

Commit

Permalink
renaming BlazorWasmHostedMeID
Browse files Browse the repository at this point in the history
  • Loading branch information
damienbod committed Apr 11, 2024
1 parent f9a7455 commit a640d67
Show file tree
Hide file tree
Showing 64 changed files with 51 additions and 51 deletions.
6 changes: 3 additions & 3 deletions BlazorBff/BlazorBff.sln
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
README_CONFIG.md = README_CONFIG.md
EndProjectSection
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorAzureADWithApis.Server", "BlazorAzureAdBff\Server\BlazorAzureADWithApis.Server.csproj", "{90A119E7-B368-4445-92CA-9474101C2026}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmHostedMeID.Server", "BlazorWasmHostedMeID\Server\BlazorWasmHostedMeID.Server.csproj", "{90A119E7-B368-4445-92CA-9474101C2026}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorAzureADWithApis.Client", "BlazorAzureAdBff\Client\BlazorAzureADWithApis.Client.csproj", "{ECB9E736-157D-4694-90A0-FDC2474A8544}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmHostedMeID.Client", "BlazorWasmHostedMeID\Client\BlazorWasmHostedMeID.Client.csproj", "{ECB9E736-157D-4694-90A0-FDC2474A8544}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorAzureADWithApis.Shared", "BlazorAzureAdBff\Shared\BlazorAzureADWithApis.Shared.csproj", "{E875E49E-FB31-446F-8B65-60BDC999AEAD}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BlazorWasmHostedMeID.Shared", "BlazorWasmHostedMeID\Shared\BlazorWasmHostedMeID.Shared.csproj", "{E875E49E-FB31-446F-8B65-60BDC999AEAD}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Shared\BlazorAzureADWithApis.Shared.csproj" />
<ProjectReference Include="..\Shared\BlazorWasmHostedMeID.Shared.csproj" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using BlazorAzureADWithApis.Client;
using BlazorAzureADWithApis.Client.Services;
using BlazorAzureADWithApis.Shared.Authorization;
using BlazorWasmHostedMeID.Client;
using BlazorWasmHostedMeID.Client.Services;
using BlazorWasmHostedMeID.Shared.Authorization;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using Microsoft.Extensions.DependencyInjection.Extensions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.JSInterop;

namespace BlazorAzureADWithApis.Client.Services;
namespace BlazorWasmHostedMeID.Client.Services;

public class AntiforgeryHttpClientFactory : IAntiforgeryHttpClientFactory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net;

namespace BlazorAzureADWithApis.Client.Services;
namespace BlazorWasmHostedMeID.Client.Services;

// orig src https://github.com/berhir/BlazorWebAssemblyCookieAuth
public class AuthorizedHandler : DelegatingHandler
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using BlazorAzureADWithApis.Shared.Authorization;
using BlazorWasmHostedMeID.Shared.Authorization;
using Microsoft.AspNetCore.Components;
using Microsoft.AspNetCore.Components.Authorization;
using System.Net.Http.Json;
using System.Security.Claims;

namespace BlazorAzureADWithApis.Client.Services;
namespace BlazorWasmHostedMeID.Client.Services;

// orig src https://github.com/berhir/BlazorWebAssemblyCookieAuth
public class HostAuthenticationStateProvider : AuthenticationStateProvider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Client.Services;
namespace BlazorWasmHostedMeID.Client.Services;

public interface IAntiforgeryHttpClientFactory
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.AspNetCore.Components.WebAssembly.Http
@using Microsoft.JSInterop
@using BlazorAzureADWithApis.Client
@using BlazorAzureADWithApis.Client.Shared
@using BlazorAzureADWithApis.Client.Services
@using BlazorWasmHostedMeID.Client
@using BlazorWasmHostedMeID.Client.Shared
@using BlazorWasmHostedMeID.Client.Services
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "BlazorAzureADWithApis",
"short_name": "BlazorAzureADWithApis",
"name": "BlazorWasmHostedMeID",
"short_name": "BlazorWasmHostedMeID",
"start_url": "./",
"display": "standalone",
"background_color": "#ffffff",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Client\BlazorAzureADWithApis.Client.csproj" />
<ProjectReference Include="..\Shared\BlazorAzureADWithApis.Shared.csproj" />
<ProjectReference Include="..\Client\BlazorWasmHostedMeID.Client.csproj" />
<ProjectReference Include="..\Shared\BlazorWasmHostedMeID.Shared.csproj" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Server;
namespace BlazorWasmHostedMeID.Server;

/// <summary>
/// Consts used for the defined AuthContext. The AuthContext can be created using MS Graph.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Server;
namespace BlazorWasmHostedMeID.Server;

/// <summary>
/// Claims challenges, claims requests, and client capabilities
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Net.Http.Headers;
using System.Net;

namespace BlazorAzureADWithApis.Server;
namespace BlazorWasmHostedMeID.Server;

/// <summary>
/// This exception class is used to pass HTTP CAE unauthorized responses from a Httpclient and
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace BlazorAzureADWithApis.Server.Controllers;
namespace BlazorWasmHostedMeID.Server.Controllers;

// orig src https://github.com/berhir/BlazorWebAssemblyCookieAuth
[Route("api/[controller]")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Identity.Web;

namespace BlazorAzureADWithApis.Server.Controllers;
namespace BlazorWasmHostedMeID.Server.Controllers;

[ValidateAntiForgeryToken]
[Authorize(Policy= "DemoAdmins", AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Identity.Web;

namespace BlazorAzureADWithApis.Server.Controllers;
namespace BlazorWasmHostedMeID.Server.Controllers;

[ValidateAntiForgeryToken]
[Authorize(Policy = "DemoUsers", AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using BlazorAzureADWithApis.Server.Services.Delegated;
using BlazorWasmHostedMeID.Server.Services.Delegated;
using Microsoft.AspNetCore.Authentication.Cookies;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Identity.Web;

namespace BlazorAzureADWithApis.Server.Controllers;
namespace BlazorWasmHostedMeID.Server.Controllers;

[ValidateAntiForgeryToken]
[Authorize(AuthenticationSchemes = CookieAuthenticationDefaults.AuthenticationScheme)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using BlazorAzureADWithApis.Shared.Authorization;
using BlazorWasmHostedMeID.Shared.Authorization;

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using BlazorAzureADWithApis.Server.Services.Application;
using BlazorAzureADWithApis.Shared.Authorization;
using BlazorWasmHostedMeID.Server.Services.Application;
using BlazorWasmHostedMeID.Shared.Authorization;
using Microsoft.AspNetCore.Authentication;
using System.Security.Claims;

namespace BlazorAzureADWithApis.Server;
namespace BlazorWasmHostedMeID.Server;

public class GraphApiClaimsTransformation : IClaimsTransformation
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@page
@model BlazorAzureADWithApis.Server.Pages.ErrorModel
@model BlazorWasmHostedMeID.Server.Pages.ErrorModel

<!DOCTYPE html>
<html>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.AspNetCore.Mvc.RazorPages;
using System.Diagnostics;

namespace BlazorAzureADWithApis.Server.Pages;
namespace BlazorWasmHostedMeID.Server.Pages;

[ResponseCache(Duration = 0, Location = ResponseCacheLocation.None, NoStore = true)]
[IgnoreAntiforgeryToken]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@page "/"
@namespace BlazorAzureADWithApis.Pages
@using BlazorAzureADWithApis.Client
@namespace BlazorWasmHostedMeID.Pages
@using BlazorWasmHostedMeID.Client
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
@addTagHelper *, NetEscapades.AspNetCore.SecurityHeaders.TagHelpers
@{
Expand All @@ -16,7 +16,7 @@
<base href="~/" />
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css" />
<link href="css/app.css" rel="stylesheet" />
<link href="BlazorAzureADWithApis.Client.styles.css" rel="stylesheet" />
<link href="BlazorWasmHostedMeID.Client.styles.css" rel="stylesheet" />
<link href="manifest.json" rel="manifest" />
<link rel="apple-touch-icon" sizes="512x512" href="icon-512.png" />
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using BlazorAzureADWithApis.Server;
using BlazorAzureADWithApis.Server.Services;
using BlazorAzureADWithApis.Server.Services.Application;
using BlazorAzureADWithApis.Server.Services.Delegated;
using BlazorAzureADWithApis.Shared.Authorization;
using BlazorWasmHostedMeID.Server;
using BlazorWasmHostedMeID.Server.Services;
using BlazorWasmHostedMeID.Server.Services.Application;
using BlazorWasmHostedMeID.Server.Services.Delegated;
using BlazorWasmHostedMeID.Shared.Authorization;
using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"profiles": {
"BlazorAzureADWithApis.Server": {
"BlazorWasmHostedMeID.Server": {
"commandName": "Project",
"launchBrowser": true,
"environmentVariables": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Server;
namespace BlazorWasmHostedMeID.Server;

public static class SecurityHeadersDefinitions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Graph.Models;
using Microsoft.Graph;

namespace BlazorAzureADWithApis.Server.Services.Application;
namespace BlazorWasmHostedMeID.Server.Services.Application;

public class MsGraphApplicationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.Net.Http.Headers;

namespace BlazorAzureADWithApis.Server.Services;
namespace BlazorWasmHostedMeID.Server.Services;

public static class ApplicationBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using Microsoft.Identity.Web;
using Microsoft.IdentityModel.Tokens;

namespace BlazorAzureADWithApis.Server.Services.Delegated;
namespace BlazorWasmHostedMeID.Server.Services.Delegated;

public class MsGraphDelegatedService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Server.Services;
namespace BlazorWasmHostedMeID.Server.Services;

public static class EndpointRouteBuilderExtensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlazorAzureADWithApis.Shared.Authorization;
namespace BlazorWasmHostedMeID.Shared.Authorization;

public class ClaimValue
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.AspNetCore.Authorization;

namespace BlazorAzureADWithApis.Shared.Authorization;
namespace BlazorWasmHostedMeID.Shared.Authorization;

public static class Policies
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace BlazorAzureADWithApis.Shared.Authorization;
namespace BlazorWasmHostedMeID.Shared.Authorization;

public class UserInfo
{
Expand Down
2 changes: 1 addition & 1 deletion BlazorBff/README_CONFIG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

## BlazorAzureADWithApis.Server secrets
## BlazorWasmHostedMeID.Server secrets

```
"AzureAd": {
Expand Down

0 comments on commit a640d67

Please sign in to comment.