{"id":21813564,"url":"https://github.com/vahidn/blazorwasmdynamicpermissions","last_synced_at":"2026-02-23T09:47:43.803Z","repository":{"id":66345058,"uuid":"500767326","full_name":"VahidN/BlazorWasmDynamicPermissions","owner":"VahidN","description":"Blazor WASM Dynamic Permissions","archived":false,"fork":false,"pushed_at":"2025-05-09T16:39:24.000Z","size":4950,"stargazers_count":27,"open_issues_count":3,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-05T20:39:52.249Z","etag":null,"topics":["asp-net-core","aspnetcore","blazor"],"latest_commit_sha":null,"homepage":"","language":"SCSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VahidN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","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,"zenodo":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.coffeete.ir/vnasiri","https://www.buymeacoffee.com/vahidn"]}},"created_at":"2022-06-07T09:08:54.000Z","updated_at":"2025-02-06T16:41:08.000Z","dependencies_parsed_at":"2025-04-13T23:30:50.573Z","dependency_job_id":"de8ee0ed-8f7b-44d1-84b7-8353bafdba35","html_url":"https://github.com/VahidN/BlazorWasmDynamicPermissions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/VahidN/BlazorWasmDynamicPermissions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VahidN%2FBlazorWasmDynamicPermissions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VahidN%2FBlazorWasmDynamicPermissions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VahidN%2FBlazorWasmDynamicPermissions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VahidN%2FBlazorWasmDynamicPermissions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VahidN","download_url":"https://codeload.github.com/VahidN/BlazorWasmDynamicPermissions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VahidN%2FBlazorWasmDynamicPermissions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["asp-net-core","aspnetcore","blazor"],"created_at":"2024-11-27T14:30:00.356Z","updated_at":"2026-02-23T09:47:43.775Z","avatar_url":"https://github.com/VahidN.png","language":"SCSS","funding_links":["https://www.coffeete.ir/vnasiri","https://www.buymeacoffee.com/vahidn"],"categories":[],"sub_categories":[],"readme":"# Blazor WASM 9x Dynamic Permissions\n\n\u003cp align=\"left\"\u003e\n  \u003ca href=\"https://github.com/VahidN/BlazorWasmDynamicPermissions\"\u003e\n     \u003cimg alt=\"GitHub Actions status\" src=\"https://github.com/VahidN/BlazorWasmDynamicPermissions/workflows/.NET%20Core%20Build/badge.svg\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\nThis is a sample project to demonstrate these features:\n- How to mark client-side pages as protected and list all of them automatically.\n- How to render a dynamic menu based on the protected pages list automatically.\n\n![users manager](src/Server/wwwroot/images/bwdp00.png)\n\n- How to add an admin page to define allowed pages for different users dynamically.\n\n![users manager](src/Server/wwwroot/images/bwdp01.png)\n\n![users manager](src/Server/wwwroot/images/bwdp02.png)\n\n- How to trim/hide the dynamically rendered menu items, based on the currently logged-in user's dynamic permissions.\n- How to use JWT's to secure a Blazor WASM's app without using the ASP.NET Core Identity or IdentityServer.\n- How to create refresh tokens and also use them before the expiration date of the current access token by using a custom timer.\n- How to refresh tokens when the current access token is expired using Polly automatically.\n- How to list all of the secured resources on the server automatically.\n- How to define an admin page to define allowed resources on the server (action methods of different controllers) for different users dynamically.\n\n![users manager](src/Server/wwwroot/images/bwdp03.png)\n\n## How to run the application\n\nThis sample is a Blazor WASM 9x hosted project. To run it you should start the `src\\Server` project first. It will create a new SQLite database automatically using the EF-Core's migrations and then seeds it with 3 predefined users which [their details can be found here](src/Server/appsettings.json). Use the Admin user's info to login to the app and then add/change the users' permissions. Now login as them and see the results, including the security trimming of the dynamically rendered menu items and the ability/inability of fetching the dynamically secured server-side resources. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvahidn%2Fblazorwasmdynamicpermissions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvahidn%2Fblazorwasmdynamicpermissions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvahidn%2Fblazorwasmdynamicpermissions/lists"}