OAuth 2.0 server-side implementation written in Scala
These methods of AuthorizationHandler
signature to get AuthorizationRequest
.
You don't need to define findClientUser
method which integrated in findUser
method.
You need to customize TokenEndpoint
trait and use it to you want to use grant types. See README.md.
class CustomizedTokenEndpoint extends TokenEndpoint {
override val handlers = Map(
OAuthGrantType.AUTHORIZATION_CODE -> new AuthorizationCode(),
OAuthGrantType.REFRESH_TOKEN -> new RefreshToken(),
OAuthGrantType.CLIENT_CREDENTIALS -> new ClientCredentials(),
OAuthGrantType.PASSWORD -> new Password(),
OAuthGrantType.IMPLICIT -> new Implicit()
)
}
DataHandler
interface added deleteAuthCode