[C#/ASP.NET MVC/.NETCORE] OAuth 인증 사용하기 (액세스 토큰 갱신 추가)


■ OAuth 인증을 사용하는 방법을 보여준다. (액세스 토큰 갱신 추가)

[TestAuthorizationServer 프로젝트]

Properties/launchSettings.json

ConstantHelper.cs

Startup.cs

Controllers/HomeController.cs

Controllers/OAuthController.cs

Controllers/SecretController.cs

Views/Home/Index.cshtml

Views/OAuth/Login.cshtml

[TestAPIServer 프로젝트]

Properties/launchSettings.json

Requirement/JWTRequirement.cs

Requirement/JWTRequirementAuthorizationHandler.cs

CustomAuthenticationHandler.cs

Startup.cs

Controllers/HomeController.cs

Controllers/SecretController.cs

Views/Home/Index.cshtml

[TestClient 프로젝트]

Properties/launchSettings.json

Startup.cs

Controllers/HomeController.cs

Views/Home/Index.cshtml

Views/Home/Secret.cshtml

TestSolution.zip