mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-18 17:42:54 +05:30
The response may be a PSR response which is valid
This commit is contained in:
parent
796106b6c1
commit
1a5030200a
@ -137,7 +137,11 @@ class Server implements EmitterAwareInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$tokenResponse instanceof ResponseTypeInterface) {
|
if ($tokenResponse instanceof ResponseInterface) {
|
||||||
|
return $tokenResponse;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($tokenResponse instanceof ResponseTypeInterface === false) {
|
||||||
return OAuthServerException::unsupportedGrantType()->generateHttpResponse($response);
|
return OAuthServerException::unsupportedGrantType()->generateHttpResponse($response);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user