Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.217.117
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
v3.cesa.co.za /
src /
UserBundle /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2026-08-17 03:12
OauthClientCreateCommand.php
2.35
KB
-rwxrwxr-x
2026-05-25 12:28
UserListCommand.php
2.34
KB
-rwxrwxr-x
2026-04-02 12:06
UserListSyncCommand.php
2.74
KB
-rwxrwxr-x
2026-04-02 12:06
UserNetworkCommand.php
940
B
-rwxrwxr-x
2026-04-02 12:06
php_errors.log
1.3
KB
-rwxrwxr-x
2026-04-02 12:06
Save
Rename
<?php namespace App\UserBundle\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use League\OAuth2\Server\Entities\ClientEntityInterface; use League\OAuth2\Server\Entities\ClientEntity; class OauthClientCreateCommand extends Command { private ContainerInterface $container; public function __construct(ContainerInterface $container) { parent::__construct(); $this->container = $container; } protected function configure() { $this ->setName('iga:oauth-server:client-create') ->setDescription('Create a new OAuth2 client') ->addArgument('name', InputArgument::REQUIRED, 'Sets the client name', null) ->addOption('redirect-uri', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Sets redirect uri for client. Use this option multiple times to set multiple redirect URIs.', null) ->addOption('grant-type', null, InputOption::VALUE_REQUIRED | InputOption::VALUE_IS_ARRAY, 'Sets allowed grant type for client. Use this option multiple times to set multiple grant types.', null) ; } protected function execute(InputInterface $input, OutputInterface $output) { $name = $input->getArgument('name'); $redirectUris = $input->getOption('redirect-uri'); $grantTypes = $input->getOption('grant-type'); // Get the client manager from the container $clientManager = $this->container->get('league.oauth2_server.manager.doctrine.client_manager'); // Create a new client $client = new ClientEntity(); $client->setName($name); $client->setRedirectUris($redirectUris); $client->setGrants($grantTypes); $clientManager->save($client); $output->writeln(sprintf('Created OAuth2 client with name <info>%s</info>', $name)); $output->writeln(sprintf('Client ID: <info>%s</info>', $client->getIdentifier())); $output->writeln(sprintf('Client Secret: <info>%s</info>', $client->getSecret())); $output->writeln('Keep these credentials secure!'); return Command::SUCCESS; } }