mirror of
https://github.com/webmasterskaya/joomla-oauth-server.git
synced 2024-11-24 02:44:51 +03:00
Привёл в порядок redirect_uris
This commit is contained in:
parent
bab9db5155
commit
cd069bc6ef
@ -31,7 +31,7 @@ $wa->useScript('keepalive')
|
|||||||
<div>
|
<div>
|
||||||
<?php echo $this->form->renderField('name'); ?>
|
<?php echo $this->form->renderField('name'); ?>
|
||||||
<?php echo $this->form->renderField('public'); ?>
|
<?php echo $this->form->renderField('public'); ?>
|
||||||
<?php echo $this->form->renderField('redirect_uri'); ?>
|
<?php echo $this->form->renderField('redirect_uris'); ?>
|
||||||
<?php echo $this->form->renderField('allow_plain_text_pkce'); ?>
|
<?php echo $this->form->renderField('allow_plain_text_pkce'); ?>
|
||||||
<?php echo $this->form->renderField('identifier'); ?>
|
<?php echo $this->form->renderField('identifier'); ?>
|
||||||
<?php echo $this->form->renderField('secret'); ?>
|
<?php echo $this->form->renderField('secret'); ?>
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
namespace Webmasterskaya\Component\OauthServer\Site\Repository;
|
namespace Webmasterskaya\Component\OauthServer\Site\Repository;
|
||||||
|
|
||||||
use Joomla\CMS\Object\CMSObject;
|
use Joomla\CMS\Object\CMSObject;
|
||||||
|
use Joomla\Utilities\ArrayHelper;
|
||||||
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
use League\OAuth2\Server\Entities\ClientEntityInterface;
|
||||||
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
|
use League\OAuth2\Server\Repositories\ClientRepositoryInterface;
|
||||||
use Webmasterskaya\Component\OauthServer\Administrator\Model\ClientModel;
|
use Webmasterskaya\Component\OauthServer\Administrator\Model\ClientModel;
|
||||||
@ -62,7 +63,7 @@ class ClientRepository implements ClientRepositoryInterface
|
|||||||
$clientEntity = new Client();
|
$clientEntity = new Client();
|
||||||
$clientEntity->setName($client->name);
|
$clientEntity->setName($client->name);
|
||||||
$clientEntity->setIdentifier($client->identifier);
|
$clientEntity->setIdentifier($client->identifier);
|
||||||
$clientEntity->setRedirectUri(array_map('strval', (array)$client->redirect_uris));
|
$clientEntity->setRedirectUri(ArrayHelper::getColumn((array)$client->redirect_uris, 'uri'));
|
||||||
$clientEntity->setConfidential(!$client->public);
|
$clientEntity->setConfidential(!$client->public);
|
||||||
$clientEntity->setAllowPlainTextPkce((bool)$client->allow_plain_text_pkce);
|
$clientEntity->setAllowPlainTextPkce((bool)$client->allow_plain_text_pkce);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user