{"id":18298716,"url":"https://github.com/fusionauth/fusionauth-example-asp-netcore","last_synced_at":"2025-04-05T13:33:57.495Z","repository":{"id":56287777,"uuid":"260272869","full_name":"FusionAuth/fusionauth-example-asp-netcore","owner":"FusionAuth","description":" An ASP.NET Core web application using FusionAuth as the identity server","archived":false,"fork":false,"pushed_at":"2024-07-28T05:54:34.000Z","size":683,"stargazers_count":2,"open_issues_count":1,"forks_count":6,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-04-01T16:56:42.400Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/FusionAuth.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-30T17:18:58.000Z","updated_at":"2024-07-28T05:54:37.000Z","dependencies_parsed_at":"2024-07-28T06:51:56.633Z","dependency_job_id":null,"html_url":"https://github.com/FusionAuth/fusionauth-example-asp-netcore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-asp-netcore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-asp-netcore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-asp-netcore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-example-asp-netcore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-example-asp-netcore/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247342555,"owners_count":20923620,"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":[],"created_at":"2024-11-05T15:06:49.490Z","updated_at":"2025-04-05T13:33:57.068Z","avatar_url":"https://github.com/FusionAuth.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example ASP.NET Core web application\nAn ASP.NET Core web application using FusionAuth as the identity server.\nThis application will use an OAuth Authorization Code workflow to log users in. \n\nYou need to have dotnetcore installed to run this code. Please note that this application uses netcore 3.1.\n\nSet up FusionAuth as documented in the blog post. \n\n## Windows Install\nTo deploy and run on Windows, assuming you have the dotnetcore 3.1 runtime installed:\n\n* Open up a terminal (these instructions assume a `cmd` window)\n* `cd SampleApp`\n* Update `appsettings.json` with the FusionAuth application `ClientId` and the `Authority` as necessary.\n* Export the client secret as an environment variable: `set SampleApp__ClientSecret=\"...\"`\n* Publish the binary: `dotnet publish -r win-x64`\n* Run the application: `bin\\Debug\\netcoreapp3.1\\win-x64\\publish\\SampleApp.exe`\n\nVisit the local webserver at `http://localhost:5000/` and sign in.\n\n## Mac Install\n\nTo run on a macos, use the [scripts here](https://dotnet.microsoft.com/download/dotnet-core/scripts) to install dotnetcore. \n\n* `cd SampleApp`\n* Update `appsettings.json` with the FusionAuth application `ClientId` and the `Authority` as necessary.\n* `export SampleApp__ClientSecret=\"...\"`\n* `dotnet publish -r osx.10.14-x64`\n* `bin/Debug/netcoreapp3.1/osx.10.14-x64/publish/SampleApp`\n\nVisit the local webserver at `http://localhost:5000/` and sign in.\n\n## Misc\n\nSee more deployment options: https://docs.microsoft.com/en-us/dotnet/core/deploying/\n\nSee the blog post for more details about this code: [Securing an ASP.NET Core Razor Pages app with OAuth](https://fusionauth.io/blog/2020/05/06/securing-asp-netcore-razor-pages-app-with-oauth)\n\nWe also have [a dotnetcore5 example application](https://github.com/FusionAuth/fusionauth-example-asp-netcore5).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-asp-netcore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-example-asp-netcore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-example-asp-netcore/lists"}