https://github.com/fusionauth/fusionauth-example-netcore
An example of using the FusionAuth API with .NET core
https://github.com/fusionauth/fusionauth-example-netcore
Last synced: 6 months ago
JSON representation
An example of using the FusionAuth API with .NET core
- Host: GitHub
- URL: https://github.com/fusionauth/fusionauth-example-netcore
- Owner: FusionAuth
- License: apache-2.0
- Created: 2020-04-27T16:32:19.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-07-28T05:55:16.000Z (almost 2 years ago)
- Last Synced: 2025-03-25T06:33:22.796Z (over 1 year ago)
- Language: C#
- Size: 15.6 KB
- Stars: 2
- Watchers: 11
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# FusionAuth and .NET core
An example of using the FusionAuth API with .NET core.
This application uses FusionAuth APIs to add a user and then search for users from the command line. This can be used to pull a subset of data from the FusionAuth database, for instance to get the assigned laptop number.
## Blog post
You can read a blog post about building this example application here: https://fusionauth.io/blog/2020/04/28/dot-net-command-line-client
## Setup
Update `usermanager/Program.cs` where noted.
## To run
```
cd usermanager
fusionauth_api_key= dotnet.exe run -- newuser@example.com mysecurepassword blue # on windows
fusionauth_api_key= dotnet run -- newuser@example.com mysecurepassword blue # on macos or linux
```
Output:
```
created user with email: newuser@example.com
```
If you want to test patching the user, edit the code and uncomment the patching after registration.