- 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_token
for generating a CSRF token.
- Introduced the
user_callback
parameter in theoauth.services
configuration 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.services
should now be capitalized in the same manner as the underlying OAuth service class (e.g.GitHub
instead ofgithub
). This removes the need for the workaround of providing the full classname in theclass
parameter. 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
TokenStorageInterface
methods 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}/callback
has changed to/auth/{service}/callback
, so make sure to update the configuration at your OAuth provider. SymfonySession
is temporarily copied over fromlusitanian/oauth
to minimize disruption when it is removed in v0.5.