@@ -460,14 +460,20 @@ You only need to provide correct credentials. Everything else is automatically
460
460
handled from the package. Under the hood we are storing the authentication
461
461
cookie in the cache named * docuware.cookies* .
462
462
463
- You can run ` php artisan docuware:list-auth-cookie ` command to get your auth session that you can use in your ` .env ` file ` DOCUWARE_COOKIES ` key.
463
+ You can run ` php artisan docuware:list-auth-cookie ` command to get your auth session that you can use in your ` .env `
464
+ file ` DOCUWARE_COOKIES ` key.
464
465
465
466
But if you need further control you can use the following methods to login and
466
467
logout with DocuWare:
467
468
468
469
``` php
469
470
use CodebarAg\DocuWare\Facades\DocuWare;
470
471
472
+ /**
473
+ * If you would like to handle the cookie storage by yourself you can get a fresh cookie with the getCookie() method.
474
+ */
475
+ DocuWare::getCookie();
476
+
471
477
/**
472
478
* Login with your credentials. You only need to login once. Afterwards the
473
479
* authentication cookie is stored in the cache as `docuware.cookies` and
@@ -566,6 +572,15 @@ This is the contents of the published config file:
566
572
<?php
567
573
568
574
return [
575
+ /*
576
+ |--------------------------------------------------------------------------
577
+ | Connection
578
+ |--------------------------------------------------------------------------
579
+ | Select a connector to authenticate with. You can choose between: WITHOUT_COOKIE, STATIC_COOKIE
580
+ |
581
+ */
582
+
583
+ 'connection' => ConnectionEnum::WITHOUT_COOKIE,
569
584
570
585
/*
571
586
|--------------------------------------------------------------------------
@@ -698,6 +713,7 @@ cp phpunit.xml.dist phpunit.xml
698
713
Modify environment variables in the phpunit.xml-file:
699
714
700
715
``` xml
716
+
701
717
<env name =" DOCUWARE_URL" value =" https://domain.docuware.cloud" />
702
718
<
env name =
" DOCUWARE_USERNAME" value =
" [email protected] " />
703
719
<env name =" DOCUWARE_PASSWORD" value =" password" />
0 commit comments