Skip to content

Commit

Permalink
[TASK] Add single log out property to application
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Wessels committed Sep 11, 2019
1 parent 63d6cf9 commit db460fd
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 5 deletions.
15 changes: 15 additions & 0 deletions Classes/Domain/Model/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ class Application extends AbstractEntity
*/
protected $audience = '';

/**
* @var bool
*/
protected $singleLogOut = false;

public function getTitle(): string
{
return $this->title;
Expand Down Expand Up @@ -92,4 +97,14 @@ public function setAudience(string $audience)
{
$this->audience = $audience;
}

public function isSingleLogOut(): bool
{
return $this->singleLogOut;
}

public function setSingleLogOut(bool $singleLogOut): void
{
$this->singleLogOut = $singleLogOut;
}
}
11 changes: 9 additions & 2 deletions Configuration/TCA/tx_auth0_domain_model_application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
'iconfile' => 'EXT:auth0/Resources/Public/Icons/tx_auth0_domain_model_application.png',
],
'interface' => [
'showRecordFieldList' => 'hidden, title, id, secret, domain, audience',
'showRecordFieldList' => 'hidden, title, id, secret, domain, audience, single_log_out',
],
'types' => [
'1' => ['showitem' => 'hidden, title, domain, id, secret, audience'],
'1' => ['showitem' => 'hidden, single_log_out, title, domain, id, secret, audience'],
],
'columns' => [
'hidden' => [
Expand All @@ -30,6 +30,13 @@
'default' => 0,
],
],
'single_log_out' => [
'label' => 'LLL:EXT:auth0/Resources/Private/Language/Database.xlf:tx_auth0_domain_model_application.single_log_out',
'config' => [
'type' => 'check',
'default' => true,
],
],
'title' => [
'exclude' => false,
'label' => 'LLL:EXT:auth0/Resources/Private/Language/Database.xlf:tx_auth0_domain_model_application.title',
Expand Down
5 changes: 2 additions & 3 deletions Resources/Private/Language/Database.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,8 @@
<trans-unit id="tx_auth0_domain_model_application.audience">
<source>Audience</source>
</trans-unit>

<trans-unit id="xxflexform.settings.title">
<source>Auth0</source>
<trans-unit id="tx_auth0_domain_model_application.single_log_out">
<source>Single log out</source>
</trans-unit>

<trans-unit id="fe_users.tx_extbase_type.Tx_Auth0_FrontendUser">
Expand Down
1 change: 1 addition & 0 deletions ext_tables.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ CREATE TABLE be_users (
#
CREATE TABLE tx_auth0_domain_model_application (
title varchar(255) DEFAULT '' NOT NULL,
single_log_out SMALLINT(5) DEFAULT 1 NOT NULL,
id varchar(255) DEFAULT '' NOT NULL,
secret varchar(255) DEFAULT '' NOT NULL,
domain varchar(255) DEFAULT '' NOT NULL,
Expand Down

0 comments on commit db460fd

Please sign in to comment.