{"id":18298564,"url":"https://github.com/fusionauth/fusionauth-quickstart-dotnet-web","last_synced_at":"2026-01-20T03:32:19.411Z","repository":{"id":184731058,"uuid":"672083093","full_name":"FusionAuth/fusionauth-quickstart-dotnet-web","owner":"FusionAuth","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-28T05:56:44.000Z","size":3460,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":9,"default_branch":"main","last_synced_at":"2024-07-28T06:46:09.586Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","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":"2023-07-28T22:04:20.000Z","updated_at":"2024-07-28T05:56:47.000Z","dependencies_parsed_at":"2024-07-24T04:10:48.562Z","dependency_job_id":null,"html_url":"https://github.com/FusionAuth/fusionauth-quickstart-dotnet-web","commit_stats":null,"previous_names":["fusionauth/fusionauth-quickstart-dotnet-web"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-dotnet-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-dotnet-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-dotnet-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FusionAuth%2Ffusionauth-quickstart-dotnet-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FusionAuth","download_url":"https://codeload.github.com/FusionAuth/fusionauth-quickstart-dotnet-web/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223192690,"owners_count":17103564,"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:25.015Z","updated_at":"2026-01-20T03:32:19.349Z","avatar_url":"https://github.com/FusionAuth.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quickstart: .NET app with FusionAuth\n\nThis repository contains a .NET app that works with a locally running instance of [FusionAuth](https://fusionauth.io/), the authentication and authorization platform.\n\n## Setup\n\n### Prerequisites\n- [.NET](https://dotnet.microsoft.com/en-us/download): This in the needed framework to run .NET applications.\n- [Docker](https://www.docker.com): The quickest way to stand up FusionAuth.\n  - (Alternatively, you can [Install FusionAuth Manually](https://fusionauth.io/docs/v1/tech/installation-guide/)).\n- [Visual Stuido Code](https://code.visualstudio.com/download): The editor for making changes to code.\n  - Alternatively, You can user other editors as well.\n\nThis app has been tested with .NET 7.0.7\n\n### FusionAuth Installation via Docker\n\nThe root of this project directory (next to this README) are two files [a Docker compose file](./docker-compose.yml) and an [environment variables configuration file](./.env). Assuming you have Docker installed on your machine, you can stand up FusionAuth up on your machine with:\n\n```\ndocker compose up -d\n```\n\nThe FusionAuth configuration files also make use of a unique feature of FusionAuth, called [Kickstart](https://fusionauth.io/docs/v1/tech/installation-guide/kickstart): when FusionAuth comes up for the first time, it will look at the [Kickstart file](./kickstart/kickstart.json) and mimic API calls to configure FusionAuth for use when it is first run. \n\n\u003e **NOTE**: If you ever want to reset the FusionAuth system, delete the volumes created by docker compose by executing `docker compose down -v`. \n\nFusionAuth will be initially configured with these settings:\n\n* Your client Id is: `e9fdb985-9173-4e01-9d73-ac2d60d1dc8e`\n* Your client secret is: `super-secret-secret-that-should-be-regenerated-for-production`\n* Your example username is `richard@example.com` and your password is `password`.\n* Your admin username is `admin@example.com` and your password is `password`.\n* Your fusionAuthBaseUrl is 'http://localhost:9011/'\n\nYou can log into the [FusionAuth admin UI](http://localhost:9011/admin) and look around if you want, but with Docker/Kickstart you don't need to.\n\n### .NET complete-app\n\nThe `complete-app` directory contains a minimal .NET app configured to authenticate with locally running FusionAuth.\n\nTo run the application:\n* Endure the FusionAuth server is running as noted above or update the applicationsettings.json to reflect the FusionAuth server you are using.\n\n```\ncd complete-application\ndotnet run\n```\n\nNow vist the .NET app at [http://localhost:5000](http://localhost:5000)\nYou can login with a user preconfigured during Kickstart, `richard@example.com` with the password of `password`.\n\n### Further Information\n\nVisit https://fusionauth.io/docs/quickstarts/quickstart-dotnet-web for a step by step guide on how to build this .NET app integrated with FusionAuth by scratch.\n\n### Troubleshooting\n\n* I get `This site can’t be reached localhost refused to connect.` when I click the Login button\n\nEnsure FusionAuth is running in the Docker container.  You should be able to login as the admin user, `admin@example.com` with the password of `password` at http://localhost:9011/admin\n\n* I get an error page when I click on the Login button with message of `\"error_reason\" : \"invalid_client_id\"`\n\nEnsure the value for `ClientId` in the file `appsettings.json` matches client id configured in FusionAuth for the Example App application at http://localhost:9011/admin/application/\n\n* I have previously run the application and am now getting a 403 error on the unsecured index page.\n\nClear your browser cache and try again.\n\n* I get 'Maintenance Mode Failed' error when I visit http://localhost:9011.\n\nTear down the docker container for the server and restart it.\n```\ndocker compose down -v\ndocker compose up -d\n```\n\n* I do not see the changes I made reflected in the application when I publish and run from the command line.\n\nDelete the Debug folder in the complete-application/bin directory and try to publish and run again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-dotnet-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-dotnet-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffusionauth%2Ffusionauth-quickstart-dotnet-web/lists"}