KnpLabs/KnpOAuthBundle — comment on commit c8dd21f33787386402e699268f658f6f452c31d7
File: Security/Core/User/OAuthUserProvider.php line 17
By geoffrey:

I though the `supportsClass` was used by the security component to prevent unsupported user classes uses :(

About the security, you are right in theory, but this provider is not meant to be used with "local user persistance". The use case is the one of knpbundles: you just want a name and don't need to do fancy stuff with your users like manage authorization.

That said, I don't like it either, I guess the username fetching (currently implemented in OAuthProvider, where it should not be, as you pointed earlier) should be implemented here, which would allow easy custom implementation depending on the OAuth provider