An open API service indexing awesome lists of open source software.

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

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.