-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8a3653d
commit 59a8c8d
Showing
54 changed files
with
143 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
--- | ||
layout: blog-post | ||
publish_date: 2020-04-28 | ||
title: Creating a user in FusionAuth with a .NET Core CLI client | ||
description: Use the FusionAuth APIs to create and manage a user using the .NET Core client libraries. | ||
author: Dan Moore | ||
image: blogs/dot-net-command-line-client/creating-user-cli-client.png | ||
category: tutorial | ||
authors: Dan Moore | ||
image: /img/blogs/dot-net-command-line-client/creating-user-cli-client.png | ||
categories: tutorial | ||
tags: client-netcore tutorial tutorial-netcore netcore dotnet | ||
excerpt_separator: "<!--more-->" | ||
excerpt_separator: "{/* more */}" | ||
--- | ||
import Aside from '../../components/Aside.astro'; | ||
|
||
In this post, we'll build a command line client for FusionAuth with C# and the .NET Core libraries. We'll set up FusionAuth and then add a user to an application from the command line interface (CLI) tool we've built. | ||
|
||
<!--more--> | ||
{/* more */} | ||
|
||
{% include _callout-tip.liquid | ||
content= | ||
"This blog post has been [superseded by this guide](/docs/v1/tech/tutorials/integrate-dotnet)." | ||
%} | ||
<Aside type="tip" nodark="true">This blog post has been [superseded by this guide](/docs/v1/tech/tutorials/integrate-dotnet).</Aside> | ||
|
||
At the end of this tutorial, you will have a working .NET Core application which will allow you to add users to your FusionAuth user database. | ||
|
||
|
@@ -72,7 +70,7 @@ Check out the [Download FusionAuth page](/download) for other installation optio | |
|
||
Sign in as a FusionAuth administrator and create a new application. I creatively named mine 'dotnetcore', and will refer to this application throughout the tutorial. No need to tweak any defaults, but do note the "Id", which we'll use later. | ||
|
||
{% include _image.liquid src="/assets/img/blogs/dot-net-command-line-client/create-application.png" alt="The application in FusionAuth after it has been created" class="img-fluid" figure=false %} | ||
![The application in FusionAuth after it has been created.](/img/blogs/dot-net-command-line-client/create-application.png) | ||
|
||
Then go to the APIs section. We'll need to create an API key for our CLI client. Head to "Settings" and then to "API Keys" in the UI. Create a new key, and set the permissions. | ||
|
||
|
@@ -298,7 +296,7 @@ failed with status 400 | |
|
||
If you look at the "Users" section of the FusionAuth UI, you will see "[email protected]". If you view that user, you can see they are associated with the "dotnetcore" application. | ||
|
||
{% include _image.liquid src="/assets/img/blogs/dot-net-command-line-client/user-in-registration.png" alt="The user in FusionAuth after they have been created" class="img-fluid" figure=false %} | ||
![The user in FusionAuth after they have been created.](/img/blogs/dot-net-command-line-client/user-in-registration.png) | ||
|
||
If you want to build an executable to distribute to any user or server with the .NET Core runtime available, run `dotnet build` and you'll see an executable at `bin/Debug/netcoreapp3.1/usermanager.exe`. You can also look at the various [deployment options](https://docs.microsoft.com/en-us/dotnet/core/deploying/). | ||
|
||
|
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.