Smartling / smartling-keycloak-extras

Provides projects that may be useful when implementing Spring Security with Keycloak.
Apache License 2.0
25 stars 16 forks source link

Direct access grants authentication may throw a class cast exception #3

Closed foo4u closed 9 years ago

foo4u commented 9 years ago

DirectAccessGrantAuthenticationProvider expects the principal to be a string. Improve this by:

  1. Supporting strings and instances of UserDetails
  2. Throw a more meaningful exception if the username cannot be resolved