Skip to content

fenglui/ttn.Web.JwtToken

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Usage

Features

  • DOTNET STANDARD 2.0
    • Web API

Prerequisites:

Installation:

  • Install-Package ttn.Web.JwtToken

Getting Started

run api project with hot-reload.

cd sample
dotnet watch run

controller

[Authorize(AuthenticationSchemes = "your_scheme_name")]
public class AccountController : Controller
{
 // any action of this Controller is identity required
}

action

[Authorize(AuthenticationSchemes = Consts.AuthenticationScheme)]
[HttpPost]
public async Task<IActionResult> yourAction([FromForm] string refreshToken)
{
  // ...
  return Ok("I am sign in");
}

About

a dotnet core JwtToken solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published