From 00033125858e665644cfed621ef786f96171b8ac Mon Sep 17 00:00:00 2001 From: Guilherme Donato Date: Thu, 5 Nov 2015 17:06:53 -0200 Subject: [PATCH] Forgot to add OIDC support here. --- src/PROCERGS/OAuthBundle/Entity/Client.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/PROCERGS/OAuthBundle/Entity/Client.php b/src/PROCERGS/OAuthBundle/Entity/Client.php index 4c4c6e913..d17faa653 100644 --- a/src/PROCERGS/OAuthBundle/Entity/Client.php +++ b/src/PROCERGS/OAuthBundle/Entity/Client.php @@ -489,4 +489,15 @@ public function setUpdatedAt($updatedAt = null) } return $this; } + + /** + * {@inheritdoc} + */ + public function getAllowedGrantTypes() + { + if ($this->getMetadata()) { + return $this->getMetadata()->getGrantTypes(); + } + return parent::getAllowedGrantTypes(); + } }