@@ -460,14 +460,20 @@ You only need to provide correct credentials. Everything else is automatically
460460handled from the package. Under the hood we are storing the authentication
461461cookie in the cache named * docuware.cookies* .
462462
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.
464465
465466But if you need further control you can use the following methods to login and
466467logout with DocuWare:
467468
468469``` php
469470use CodebarAg\DocuWare\Facades\DocuWare;
470471
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+
471477/**
472478 * Login with your credentials. You only need to login once. Afterwards the
473479 * authentication cookie is stored in the cache as `docuware.cookies` and
@@ -566,6 +572,15 @@ This is the contents of the published config file:
566572<?php
567573
568574return [
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,
569584
570585 /*
571586 |--------------------------------------------------------------------------
@@ -698,6 +713,7 @@ cp phpunit.xml.dist phpunit.xml
698713Modify environment variables in the phpunit.xml-file:
699714
700715``` xml
716+
701717<env name =" DOCUWARE_URL" value =" https://domain.docuware.cloud" />
702718<
env name =
" DOCUWARE_USERNAME" value =
" [email protected] " />
703719<env name =" DOCUWARE_PASSWORD" value =" password" />
0 commit comments