{"id":15410708,"url":"https://github.com/damienbod/blazornet7","last_synced_at":"2025-07-24T03:06:08.908Z","repository":{"id":38458377,"uuid":"499415852","full_name":"damienbod/BlazorNet7","owner":"damienbod","description":"Blazor .NET 7 with CSP and OIDC auth","archived":false,"fork":false,"pushed_at":"2023-05-18T16:19:41.000Z","size":379,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-19T15:54:12.305Z","etag":null,"topics":["aspnetcore","bff","blazor","csp","net7"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/damienbod.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-06-03T07:14:33.000Z","updated_at":"2023-09-20T09:03:29.000Z","dependencies_parsed_at":"2022-08-19T18:41:14.408Z","dependency_job_id":"643e379d-bb49-4263-b2a8-a885ec2decaf","html_url":"https://github.com/damienbod/BlazorNet7","commit_stats":{"total_commits":30,"total_committers":1,"mean_commits":30.0,"dds":0.0,"last_synced_commit":"484e841ce6a3049fe3bfb16d7887333db43875ae"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/damienbod/BlazorNet7","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FBlazorNet7","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FBlazorNet7/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FBlazorNet7/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FBlazorNet7/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/damienbod","download_url":"https://codeload.github.com/damienbod/BlazorNet7/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/damienbod%2FBlazorNet7/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266786798,"owners_count":23983871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aspnetcore","bff","blazor","csp","net7"],"created_at":"2024-10-01T16:45:57.205Z","updated_at":"2025-07-24T03:06:08.879Z","avatar_url":"https://github.com/damienbod.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blazor .NET 7\n\n[![.NET](https://github.com/damienbod/BlazorNet7/actions/workflows/dotnet.yml/badge.svg)](https://github.com/damienbod/BlazorNet7/actions/workflows/dotnet.yml)\n\nBlazor Hosted application with CSP protection. \n\nBFF security architecture used with standard OpenID Connect authentication (confidential client code flow with PKCE)\n\nWill working against any OpenID Connect server, only default packages used.\n\n## Update from .NET 6 =\u003e 7 breaking changes\n\nAll packages were updated to use the latest preview version\n\nName claim definition now using no namespace in .NET 7.\n\n```csharp\nuserInfo.NameClaimType = \"name\";\nuserInfo.RoleClaimType = \"role\";\n\n// breaking change .NET 7\n//if (claimsPrincipal?.Identity is ClaimsIdentity claimsIdentity)\n//{\n//    userInfo.NameClaimType = claimsIdentity.NameClaimType;\n//    userInfo.RoleClaimType = claimsIdentity.RoleClaimType;\n//}\n//else\n//{\n//    userInfo.NameClaimType = ClaimTypes.Name;\n//    userInfo.RoleClaimType = ClaimTypes.Role;\n//}\n```\n\n## CSP problems (FIXED is latest VS preview 2023-05-18)\n\nsee issues: https://github.com/dotnet/aspnetcore/issues/42007\n\nhttps://developercommunity.visualstudio.com/t/browserlink-CSP-support-NET-7/10061464\n\nCSP definition\n\n```\nstyle-src 'self' 'nonce-sqi6CzGBUG33ijD0/eGi98On5PPVa8cXRJH6/aimV/0='; \nscript-src 'self' 'sha256-ZD0chCyBaNHl+4UwQHJIHGoYhKwMeyCXGgJTKW5/67E=' 'unsafe-eval' 'nonce-sqi6CzGBUG33ijD0/eGi98On5PPVa8cXRJH6/aimV/0='; \nobject-src 'none'; block-all-mixed-content; \nimg-src 'self' data:; \nform-action 'self' https://localhost:44395; \nfont-src 'self'; base-uri 'self'; \nframe-ancestors 'none'\n```\n\n## Test OIDC server\n\nhttps://github.com/damienbod/AspNetCoreOpeniddict/tree/main/OpeniddictServer\n\n## Created using the following template\n\nhttps://github.com/damienbod/Blazor.BFF.OpenIDConnect.Template\n\n## Links:\n\nhttps://devblogs.microsoft.com/dotnet/asp-net-core-updates-in-dotnet-7-preview-3/\n\nhttps://devblogs.microsoft.com/dotnet/announcing-dotnet-7-preview-3/\n\nhttps://github.com/dotnet/aspnetcore/issues/39504\n\nhttps://dotnet.microsoft.com/en-us/download/dotnet/7.0\n\nhttps://docs.microsoft.com/en-us/dotnet/core/compatibility/7.0\n\nhttps://devblogs.microsoft.com/visualstudio/introducing-private-preview-port-tunneling-visual-studio-for-asp-net-core-projects/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2Fblazornet7","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdamienbod%2Fblazornet7","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdamienbod%2Fblazornet7/lists"}