-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into PPF-477-credentials-polling
- Loading branch information
Showing
184 changed files
with
8,240 additions
and
1,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,7 @@ AUTH0_LOGIN_CLIENT_SECRET=*** | |
AUTH0_LOGIN_REDIRECT_URI=http://localhost/auth/callback | ||
|
||
AUTH0_CLIENT_CREATION_ENABLED=true | ||
|
||
# MUST always be set to DEV tenant config except for the .env for the production app! | ||
# Otherwise local/staging/acceptance/testing environments of publiq platform will create real clients on acc/test/prod. | ||
AUTH0_ACC_TENANT_DOMAIN=publiq-dev.eu.auth0.com | ||
|
@@ -131,6 +132,11 @@ INSIGHTLY_ENABLED=true | |
INSIGHTLY_HOST=https://api.insight.ly/v3.1/ | ||
INSIGHTLY_API_KEY= | ||
|
||
SLACK_BOT_TOKEN=*** | ||
SLACK_BASE_URI=https://slack.com/api/ | ||
SLACK_TECHNICAL_SUPPORT_CHANNEL_ID=*** | ||
SLACK_PUBLIQ_PLATFORM_CHANNEL_ID=*** | ||
|
||
SENTRY_LARAVEL_ENABLED=true | ||
SENTRY_LARAVEL_DSN= | ||
|
||
|
@@ -141,5 +147,41 @@ E2E_TEST_PASSWORD= | |
E2E_TEST_ADMIN_EMAIL=[email protected] | ||
E2E_TEST_ADMIN_PASSWORD= | ||
|
||
UITPAS_INTEGRATION_TYPE_ENABLED=true | ||
UITPAS_INTEGRATION_TYPE_ENABLED=false | ||
UITPAS_INTEGRATION_TYPE_ENABLED=false | ||
VITE_UITPAS_INTEGRATION_TYPE_ENABLED=${UITPAS_INTEGRATION_TYPE_ENABLED} | ||
|
||
KEYCLOAK_ENABLED=true | ||
|
||
KEYCLOAK_ACC_BASE_URL='https://account.kcpoc.lodgon.com/' | ||
KEYCLOAK_ACC_REALM_NAME='myrealm' | ||
KEYCLOAK_ACC_CLIENT_ID='php_client' | ||
KEYCLOAK_ACC_CLIENT_SECRET='super-secret' | ||
|
||
# Incorrect values, but need to contain a valid UUID formatted string | ||
KEYCLOAK_ACC_SCOPE_SEARCH_API_ID='06059529-74b5-422a-a499-ffcaf065d437' #publiq-api-sapi-scope | ||
KEYCLOAK_ACC_SCOPE_ENTRY_API_ID='d8a54568-26da-412b-a441-d5e2fad84478' #publiq-api-entry-scope | ||
KEYCLOAK_ACC_SCOPE_UITPAS_ID='bcfb28cc-454f-488a-b080-6a29d9c0158e'#uitpas-scope | ||
|
||
KEYCLOAK_TEST_BASE_URL='https://account.kcpoc.lodgon.com/' | ||
KEYCLOAK_TEST_REALM_NAME='myrealm' | ||
KEYCLOAK_TEST_CLIENT_ID='php_client' | ||
KEYCLOAK_TEST_CLIENT_SECRET='super-secret' | ||
|
||
# Incorrect values, but need to contain a valid UUID formatted string | ||
KEYCLOAK_TEST_SCOPE_SEARCH_API_ID='06059529-74b5-422a-a499-ffcaf065d437' #publiq-api-sapi-scope | ||
KEYCLOAK_TEST_SCOPE_ENTRY_API_ID='d8a54568-26da-412b-a441-d5e2fad84478' #publiq-api-entry-scope | ||
KEYCLOAK_TEST_SCOPE_UITPAS_ID='bcfb28cc-454f-488a-b080-6a29d9c0158e'#uitpas-scope | ||
|
||
KEYCLOAK_PROD_BASE_URL='https://account.kcpoc.lodgon.com/' | ||
KEYCLOAK_PROD_REALM_NAME='myrealm' | ||
KEYCLOAK_PROD_CLIENT_ID='php_client' | ||
KEYCLOAK_PROD_CLIENT_SECRET='super-secret' | ||
|
||
# Incorrect values, but need to contain a valid UUID formatted string | ||
KEYCLOAK_PROD_SCOPE_SEARCH_API_ID='06059529-74b5-422a-a499-ffcaf065d437' #publiq-api-sapi-scope | ||
KEYCLOAK_PROD_SCOPE_ENTRY_API_ID='d8a54568-26da-412b-a441-d5e2fad84478' #publiq-api-entry-scope | ||
KEYCLOAK_PROD_SCOPE_UITPAS_ID='bcfb28cc-454f-488a-b080-6a29d9c0158e'#uitpas-scope | ||
|
||
SEARCH_BASE_URI=https://search-acc.uitdatabank.be/ | ||
SEARCH_API_KEY= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Auth0; | ||
|
||
final class Auth0Config | ||
{ | ||
public const IS_ENABLED = 'auth0.enabled'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Auth0\Listeners; | ||
|
||
use App\Auth0\Auth0ClusterSDK; | ||
use App\Auth0\Repositories\Auth0ClientRepository; | ||
use App\Domain\Integrations\Events\IntegrationUnblocked; | ||
use Illuminate\Bus\Queueable; | ||
use Illuminate\Contracts\Queue\ShouldQueue; | ||
use Psr\Log\LoggerInterface; | ||
use Throwable; | ||
|
||
final class UnblockClients implements ShouldQueue | ||
{ | ||
use Queueable; | ||
|
||
public function __construct( | ||
private readonly Auth0ClusterSDK $clusterSDK, | ||
private readonly Auth0ClientRepository $auth0ClientRepository, | ||
private readonly LoggerInterface $logger, | ||
) { | ||
} | ||
|
||
public function handle(IntegrationUnblocked $integrationUnblocked): void | ||
{ | ||
$auth0Clients = $this->auth0ClientRepository->getByIntegrationId($integrationUnblocked->id); | ||
|
||
$this->clusterSDK->unblockClients(...$auth0Clients); | ||
|
||
$this->logger->info( | ||
'Auth0 client(s) unblocked', | ||
[ | ||
'domain' => 'auth0', | ||
'integration_id' => $integrationUnblocked->id->toString(), | ||
] | ||
); | ||
} | ||
|
||
public function failed(IntegrationUnblocked $integrationUnblocked, Throwable $throwable): void | ||
{ | ||
$this->logger->error('Failed to unblock Auth0 client(s)', [ | ||
'integration_id' => $integrationUnblocked->id->toString(), | ||
'exception' => $throwable, | ||
]); | ||
} | ||
} |
Oops, something went wrong.