Skip to content

Conversation

@bkcummins
Copy link

set $headers[PHP_AUTH_PW] = "" if !isset($headers[PHP_AUTH_PW] as with password grant_type for oauth2 public workflow

Encountered this issue while implementing user_credential workflow using oauth2-server-php library in Laravel framework.

http://bshaffer.github.io/oauth2-server-php-docs/grant-types/user-credentials/

Am unable to submit header key PHP_AUTH_PW with no value.

Error:
exception 'ErrorException' with message 'Undefined index: PHP_AUTH_PW' in /oauth/vendor/symfony/http-foundation/ServerBag.php:98

…h password grant_type for oauth2 public workflow
@ibarrajo
Copy link

ibarrajo commented Oct 6, 2016

Note that this repository is read-only.

I'm seeing the same type of error in a project that uses Symfony 2.6, either way in the newer versions the fix is already implemented.

See this commit.
symfony/symfony@a450d00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants