OhadR / authentication-flows

oAuth2 sample: auth-server, resource server and client. "Authentication-Flows" is also a sub-module here.
42 stars 54 forks source link

InMemoryAuthenticationAccountRepositoryImpl.loadUserByUsername - never return null #68

Closed OhadR closed 8 years ago

OhadR commented 8 years ago

...should throw UsernameNotFoundExceptionif user was not found.

 * @return a fully populated user record (never <code>null</code>)
 *
 * @throws UsernameNotFoundException if the user could not be found or the user has no GrantedAuthority