bshaffer / oauth2-server-php

A library for implementing an OAuth2 Server in php
http://bshaffer.github.io/oauth2-server-php-docs
MIT License
3.26k stars 950 forks source link

fix AuthorizeController scope error field #870

Closed abemassry closed 7 years ago

abemassry commented 7 years ago

According to the rfc https://tools.ietf.org/html/rfc6749#section-4.1.2.1 scope errors should have an error field of invalid_scope this fixes that and the test. The TokenController has the same error description but uses the invalid_scope error so this commit makes AuthorizeController match that.

abemassry commented 7 years ago

@bshaffer Thanks!