Skip to content

Commit

Permalink
fixed redirect uri for oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
takeit committed Apr 15, 2015
1 parent 1348379 commit 80d1f53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
$stmt = $conn->prepare('INSERT INTO OAuthClient(random_id, redirect_uris, secret, allowed_grant_types, name, IdPublication, trusted)
VALUES (?, ?, ?, ?, ?, ?, ?)');
$stmt->bindValue(1, Random::generateToken());
$stmt->bindValue(2, serialize(array($alias.'/oauth/authentication/result')));
$stmt->bindValue(2, serialize(array('http://'.$alias.'/oauth/authentication/result')));
$stmt->bindValue(3, Random::generateToken());
$stmt->bindValue(4, serialize(array('token', 'authorization_code', 'client_credentials', 'password')));
$stmt->bindValue(5, $defaultClientName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ protected function configure()
->setName('oauth:create-client')
->setDescription('Create oauth2 client.')
->addArgument('name', InputArgument::REQUIRED, 'Client name')
->addArgument('publication', InputArgument::REQUIRED, 'Publication alias')
->addArgument('publication', InputArgument::REQUIRED, 'Publication alias (without http, https and www)')
->addArgument('redirectUris', InputArgument::OPTIONAL, 'Redirect uris')
->addOption('test', null, InputOption::VALUE_NONE, 'If set it will create test client with predefined data (for automatic tests)')
->addOption('default', null, InputOption::VALUE_NONE, 'If set it will create default client with predefined name');
Expand Down

0 comments on commit 80d1f53

Please sign in to comment.