OpenTouryoProject / MultiPurposeAuthSite

汎用認証サイトは、ASP.NET Identity および JSON Web Token (JWT)によって強化されたOAuth 2.0およびOpenID ConnectのIdentity Provider (Idp) および Security Token Service (STS)です。(Multi-purpose Authentication Site is Identity Provider (Idp) and Security Token Service (STS) of OAuth 2.0 and OpenID Connect powered by ASP.NET Identity and JSON Web Token (JWT).)
https://opentouryo.osscons.jp/index.php?汎用認証サイト(Multi-purpose%20Authentication%20Site)
9 stars 7 forks source link

Support the OAuth PKCE. #9

Closed daisukenishino closed 6 years ago

daisukenishino commented 7 years ago

Requirement

PKCE (Proof Key for Code Exchange by OAuth Public Clients)

daisukenishino commented 7 years ago

Necessity

It is necessary for authentication of the public client such as mobile terminal.

daisukenishino commented 7 years ago

Implementation

ApplicationOAuthBearerTokenProvider

https://github.com/OpenTouryoProject/MultiPurposeAuthSite/blob/develop/root/programs/MultiPurposeAuthSite/MultiPurposeAuthSite/Models/ASPNETIdentity/TokenProviders/ApplicationOAuthBearerTokenProvider.cs

It can be implemented in the following locations corresponding to the two end points

AuthorizationCodeProvider

https://github.com/OpenTouryoProject/MultiPurposeAuthSite/blob/develop/root/programs/MultiPurposeAuthSite/MultiPurposeAuthSite/Models/ASPNETIdentity/TokenProviders/AuthorizationCodeProvider.cs

The following class has properties of Request and Response.

They seem to be inherited properties from the BaseContext class respectively.