Skip to content

Latest commit

 

History

History
49 lines (37 loc) · 903 Bytes

README.md

File metadata and controls

49 lines (37 loc) · 903 Bytes

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");
}