Skip to content

Commit

Permalink
Merge pull request #172 from codebar-ag/feature-styles
Browse files Browse the repository at this point in the history
Feature Styles
  • Loading branch information
StanBarrows authored Sep 23, 2024
2 parents 3ce4e4a + 22de5a7 commit 43e46dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<env name="DOCUWARE_PASSWORD" value="password"/>
<env name="DOCUWARE_PASSPHRASE" value="passphrase"/>
<env name="DOCUWARE_TIMEOUT" value="30"/>
<env name="DOCUWARE_CACHE_DRIVER" value="file"/>
<env name="DOCUWARE_CACHE_DRIVER" value="array"/>
<env name="DOCUWARE_CACHE_LIFETIME_IN_SECONDS" value="0"/>
<env name="DOCUWARE_TESTS_FILE_CABINET_ID" value="17eaf4ba-41a8-43ec-8be5-80a5f5f1eaf1"/>
<env name="DOCUWARE_TESTS_DIALOG_ID" value="5afd9126-6cb1-4c7b-8ab2-2ca0bbbeb7be"/>
Expand Down
4 changes: 0 additions & 4 deletions src/Connectors/DocuWareConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,10 @@ protected function defaultAuth(): TokenAuthenticator
*/
protected function getOrCreateNewOAuthToken(): string
{
//ray($this->configuration->identifier);

$cache = Cache::store($this->configuration->cacheDriver);

$cacheKey = 'docuware.oauth.'.$this->configuration->identifier;

//ray($cache->has($cacheKey),'hasCachkey?');

// Check if the token exists in cache and return it if found
if ($cache->has($cacheKey)) {
$token = Crypt::decrypt($cache->get($cacheKey));
Expand Down

0 comments on commit 43e46dd

Please sign in to comment.