FriendsOfSymfony / oauth2-php

A server implementation of OAuth 2.0
MIT License
515 stars 112 forks source link

Extra headers fixed and "options" method added #83

Closed unValerio closed 2 years ago

unValerio commented 9 years ago

Last commit supporting extra headers was not functional, because fos_oauth_server->service->options are not arrays but scalars. Now we can config extra headers as encoded json string. (Decoded in OAuth2.php line 1484)

Also it now accept HTTP OPTIONS method cause this is how Cross-Origin Resource Sharing standard mandates browsers to behave. Please refer to this document: https://developer.mozilla.org/en-US/docs/HTTP_access_control