nulab / scala-oauth2-provider

OAuth 2.0 server-side implementation written in Scala
MIT License
537 stars 97 forks source link

value clientCredential is not a member #113

Closed hieudo closed 7 years ago

hieudo commented 7 years ago

I have one bug when upgrade version "1.0.0" to latest version "1.1.0" "value clientCredential is not a member of scalaoauth2.provider.AuthorizationRequest"

tsuyoshizawa commented 7 years ago

Thanks for the report. I also just noticed the problem.

We changed the interface from 1.1.0. In some cases, AuthorizationHandler uses validated client credential.

@rmmeans I created PR. Would you check?

tsuyoshizawa commented 7 years ago

I added Option[ClientCredential] argument to validateClient and findUser methods on AuthorizationHandler. Please use the parameter instead of AuthorizationRequest#clientCredential property.

I just released the fixed module as version 1.2.0.