- Compatibility with Symfony Routing 3.0
- Compatibility with Silex 2.0@dev, Pimple 3.0 and Symfony 2.7+
- Compatibility with Silex 1.3 and Symfony 2.4+
- New convenience function
oauth.csrf_tokenfor generating a CSRF token.
- Introduced the
user_callbackparameter in theoauth.servicesconfiguration array. This is used to specify a custom callback to populate the user token with user information retrieved from theuser_endpoint. Note that in the near future this entire mechanism may be replaced with a more robust solution (e.g. a third party library). - Each array key in
oauth.servicesshould now be capitalized in the same manner as the underlying OAuth service class (e.g.GitHubinstead ofgithub). This removes the need for the workaround of providing the full classname in theclassparameter. The service name will still be normalized to lowercase in URLs. - A convenience function,
oauth.login_paths, returns an array of entrypoint URLs for all configured services. - Please refer to the updated example in the README for all the above changes.
- Copied over new
TokenStorageInterfacemethods toSymfonySession.
- Failures during the callback process will now properly redirect back to
failure_path. Specifically,$app['oauth.controller']has been removed and the logic rolled intoOAuthAuthenticationListener. The default callback path of/login/{service}/callbackhas changed to/auth/{service}/callback, so make sure to update the configuration at your OAuth provider. SymfonySessionis temporarily copied over fromlusitanian/oauthto minimize disruption when it is removed in v0.5.