|
@@ -21,7 +21,7 @@ class OAuthClientCreateCommand extends ContainerAwareCommand
|
|
'r',
|
|
'r',
|
|
InputOption::VALUE_REQUIRED,
|
|
InputOption::VALUE_REQUIRED,
|
|
'OAuth Redirect URI',
|
|
'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 = $clientManager->createClient();
|
|
$client->setRedirectUris(array($input->getOption('redirect_uri')));
|
|
$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);
|
|
$clientManager->updateClient($client);
|
|
|
|
|
|
$output->writeln('OAuth client successfully generated!');
|
|
$output->writeln('OAuth client successfully generated!');
|