Basically clone Resources/* from oauth2-symfony-bundle.