/dotnet-auth

Authentication with JWT in Dotnet Core

Primary LanguageC#

.NET Core Authentication

Authentication with JWT in Dotnet Core

Getting Started

Clone this repository on your local machine using,

git clone https://github.com/notwld/dotnet-auth

Run the application on your localhost and test the APIs on Postman or RapidAPI or ThunderClient

API Reference

Login

  POST /api/Login
Parameter Type Description
Username string Required. Your Username.
Password string Required. Your Password.

Admin Endpoint

  GET /api/User/Admin
Parameter Type Description
Bearer string Required. Bearer Token generated when logged in.

Note: This endpoint is accessable to CEO only

BA Endpoint

  GET /api/User/BA
Parameter Type Description
Bearer string Required. Bearer Token generated when logged in.

Note: This endpoint is accessable to BA only

Manager Endpoint

  GET /api/User/Manager
Parameter Type Description
Bearer string Required. Bearer Token generated when logged in.

Note: This endpoint is accessable to Manager only