Bläddra i källkod

update command create oauth client

Guillermo Espinoza 8 år sedan
förälder
incheckning
54fbae82e4
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Command/OAuthClientCreateCommand.php

+ 2 - 2
Command/OAuthClientCreateCommand.php

@@ -21,7 +21,7 @@ class OAuthClientCreateCommand extends ContainerAwareCommand
                 'r',
                 InputOption::VALUE_REQUIRED,
                 'OAuth Redirect URI',
-                'http://127.0.0.1'
+                'http://127.0.0.1/ftth/app_dev.php/login_check'
             );
     }
 
@@ -35,7 +35,7 @@ class OAuthClientCreateCommand extends ContainerAwareCommand
         
         $client = $clientManager->createClient();
         $client->setRedirectUris(array($input->getOption('redirect_uri')));
-        $client->setAllowedGrantTypes(array('password', 'token', 'authorization_code'));
+        $client->setAllowedGrantTypes(array('password', 'refresh_token', 'token', 'authorization_code'));
         $clientManager->updateClient($client);
         
         $output->writeln('OAuth client successfully generated!');