{"id":18677400,"url":"https://github.com/persteenolsen/blazor-basic-auth","last_synced_at":"2026-04-14T00:02:36.882Z","repository":{"id":227067407,"uuid":"770340695","full_name":"persteenolsen/blazor-basic-auth","owner":"persteenolsen","description":"A Blazor .NET 6 App Client using WebAssembly  - making Basic AUTH towards a . NET 8 Web API","archived":false,"fork":false,"pushed_at":"2024-08-18T10:31:56.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-12-27T21:12:22.670Z","etag":null,"topics":["blazor","dotnet","webassembly"],"latest_commit_sha":null,"homepage":"https://blazor.basic.auth.persteenolsen.com","language":"C#","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/persteenolsen.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-11T11:37:26.000Z","updated_at":"2024-08-18T10:32:00.000Z","dependencies_parsed_at":"2024-03-11T12:59:07.780Z","dependency_job_id":"007d27d0-ea28-44b8-b310-481d448d3fc2","html_url":"https://github.com/persteenolsen/blazor-basic-auth","commit_stats":null,"previous_names":["persteenolsen/blazor-basic-auth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Fblazor-basic-auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Fblazor-basic-auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Fblazor-basic-auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/persteenolsen%2Fblazor-basic-auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/persteenolsen","download_url":"https://codeload.github.com/persteenolsen/blazor-basic-auth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239524964,"owners_count":19653251,"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","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":["blazor","dotnet","webassembly"],"created_at":"2024-11-07T09:33:47.836Z","updated_at":"2026-04-14T00:02:36.870Z","avatar_url":"https://github.com/persteenolsen.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# blazor-webassembly-basic-auth\n\nASP.NET Core Blazor WebAssembly - Basic HTTP Authentication Example\n\n# Last updated\n\n- 05-01-2026\n\n# Create a global json\n\ndotnet new globaljson --sdk-version 8.0.203 --force\n\n# Functionality of the Web App\n\n- Basic HTTP Authentication \n\n# Tech used for creating the Web App\n\n- A Blazor Webassembly Client towards a .NET 8 Web API\n- C#\n- Razor Pages\n- A traditional Webhotel for hosting\n- VS Code\n\n# Development\n\ndotnet run\n\n# Production\n\nCreate a self contained build for production at the remote server / traditionel web hotel\n\ndotnet publish blazorapp.csproj --configuration Release --runtime win-x86 --self-contained\n\nUpload the build to remote server\n\nAt my remote servers the web.config needs to be without the folowing:\n\nhostingModel=\"inprocess\"\n\n# Some issues to handle\n\n_imports.razor seems not to take of the loading of the Razor files\n\nTo solve that issue I have been loading the folders / files needed like in \"app.razor\":\n\n@using BlazorApp.Shared\n@using Microsoft.AspNetCore.Components.Routing\n@using BlazorApp.Helpers\n\nAdded the below in Blazorapp.csproj\n\nRootNameSpace - BlazorApp - RootNameSpace\n\nAdded the two below lines to avoid the release build error:\n\nDuplicate global - System - Runtime - Versioning - TargetFrameworkAttribute - attribute - Error\n\nGenerateAssemblyInfo - false - GenerateAssemblyInfo\n\nGenerateTargetFrameworkAttribute - false - GenerateTargetFrameworkAttribute\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersteenolsen%2Fblazor-basic-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpersteenolsen%2Fblazor-basic-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpersteenolsen%2Fblazor-basic-auth/lists"}