Remove duplicate Client Credential parsing
tsuyoshizawa opened this issue · comments
Tsuyoshi Yoshizawa commented
Wasteful process is performed in access token generating.
- https://github.com/nulab/scala-oauth2-provider/blob/0.9.1/scala-oauth2-core/src/main/scala/scalaoauth2/provider/TokenEndpoint.scala#L20
- https://github.com/nulab/scala-oauth2-provider/blob/0.9.1/scala-oauth2-core/src/main/scala/scalaoauth2/provider/GrantHandler.scala#L43
I will add ClientCredential
to argument of GrantHandler#handleRequest
.
The parameter will be passed by TokenEndpoint#handleRequest
.