Scala Oauth2 Provider Versions Save

OAuth 2.0 server-side implementation written in Scala

0.17.0

8 years ago

0.16.1

8 years ago
  • #78 Added to be able to get authInfo on issue access token
  • #79 Do not use import scala.concurrent.ExecutionContext.Implicits.global

0.16.0

8 years ago
  • Added Implicit grant

Breaking compatibility

Improved AuthorizationHandler #76

These methods of AuthorizationHandler signature to get AuthorizationRequest. You don't need to define findClientUser method which integrated in findUser method.

  • def validateClient(clientCredential: ClientCredential, grantType: String)
  • def findUser(username: String, password: String)
  • def findClientUser(clientCredential: ClientCredential, scope: Option[String])

Disable grant types by default #77

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()
  )
}

0.14.0

9 years ago
  • Authorisation flow: Authorisation code destruction #65 #66 by @lloydmeta
    • DataHandler interface added deleteAuthCode

0.13.3

9 years ago
  • Post request with JSON body #62 #63

0.13.2

9 years ago
  • use scaladoc wiki syntax #59
  • Removed unnecessary throw #60
  • exhaustive pattern match #61

0.13.1

9 years ago
  • Fixed implicit override #57

0.13.0

9 years ago
  • Added ActionBuilder #56 by @gakuzzzz

0.12.1

9 years ago

0.12.0

9 years ago
  • OAuth2Provider use Future Result in default
    • wrap the result by await method if your Controller supports synchronous Result