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

https://github.com/blendereru/authorizer

token based authentication in asp.net core mvc
https://github.com/blendereru/authorizer

asp-net-core-mvc authentication authorization csharp dotnet entity-framework-core fingerprint-authentication jwt-token token-based-authentication

Last synced: about 1 month ago
JSON representation

token based authentication in asp.net core mvc

Awesome Lists containing this project

README

          

# authorizer
JWT Badge
asp.net core
Fingerprint
license

The project is intended to enable jwt-token based authorization in ASP.NET Core. The typical example of how does jwt access/refresh
tokens work is explained [here](https://gist.github.com/zmts/802dc9c3510d79fd40f9dc38a12bccfc).

## Description
The explanation of code in both projects(1 - FingerprintAspNetCore, 2 - JwtService) is provided [here](specs/workflow.md).
The project uses `.net` of version `8.0`. The main project is JwtService, whereas the [FingerprintAspNetCore](FingerprintAspNetCore)
is the project taken from [fingerprint](https://fingerprint.com/blog/browser-fingerprinting-csharp/) documentation, just to
show you how the fingerprint is typically implemented in your c# application.

## Package versions
```csproj

```

## How to Run the Project

Follow these steps to get the project up and running on your local machine:

1. **Open Git Bash**
- If you don't have Git Bash installed, you can download it from [here](https://www.atlassian.com/git/tutorials/git-bash).
- Once installed, open Git Bash.

2. **Select the Path for Cloning**
- Use the `cd` command to navigate to the directory where you want to clone the repository. For example:
```bash
cd /path/to/your/directory
```
- Replace `/path/to/your/directory` with your desired path.

3. **Clone the Repository**
- Paste the following command in Git Bash to clone the repository:
```bash
git clone https://github.com/blendereru/authorizer.git
```

4. **Navigate into the Project Directory**
- Change into the project directory that was just created:
```bash
cd authorizer
```

5. **Install Dependencies**
- If your project requires any dependencies, install them by running:
```bash
dotnet restore
```
- This will restore the NuGet packages specified in your project file.

6. **Run the Project**
- To run the project, use the following command:
```bash
dotnet run
```
- This will start the application, and you can access it as specified in your project's documentation (usually in a web browser).

7. **Open in a Browser**
- If it's a web application, open your browser and go to `http://localhost:5000` (or whichever port your application is running on) to see it in action.

### Troubleshooting
- If you encounter issues while running the project, check the following:
- Ensure you have the correct version of the .NET SDK installed.
- Review any error messages for guidance on what might be wrong.