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

https://github.com/lukeuke/lukeuke.authentication.helper

Nuget package for generating JWT's for my usage in many applications
https://github.com/lukeuke/lukeuke.authentication.helper

Last synced: 8 months ago
JSON representation

Nuget package for generating JWT's for my usage in many applications

Awesome Lists containing this project

README

          

# Jwt bearer helper package
Feel free to contribute

## Examples of use

```csharp
///
/// Represents an application-specific implementation of an identity user.
///
public class User : IdentityUser
{
///
/// The username of the user.
///
public string Username { get; set; } = string.Empty;

///
/// The email address of the user.
///
public string Email { get; set; } = string.Empty;
}
```

```csharp
var user = new User("myRawPassword")
{
Username = "JohnDoe",
Email = "john.doe@example.com"
};

// Salt and hash the password
user.ProvideSaltAndHash();
```