FriendsOfSymfony/FOSOAuthServerBundle — pull request #72 by jaytaph (2012-07-12 13:12:31+00:00)
Title: Enabed user_provider argument to storage service

For the "Resource Owner Credentials" (password) grant type, a user_provider must be added in order to load a user entity from the given credentials.

Currently, the user_provider is not enabled (set hardcoded to null) in the OAuthStorage service so the system will fail in the FOS\OAuthServerBundle\Storage\OAuthStorage::checkUserCredentials (around line 131).

This fix correctly adds the fos_oauth_server.service.user_provider argument to the storage so this works. It defaults to null so when no option is given, which is the default behavior.