Skip to content

Commit c78091a

Browse files
committed
Updated readme.md and remove {} from GetAuthenticationTokenRequest
1 parent cfc5703 commit c78091a

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ Add your M-Files authentication credentials to your `.env` file:
3232
M_FILES_URL=https://your-mfiles-server.com
3333
M_FILES_USERNAME=your-username
3434
M_FILES_PASSWORD=your-password
35-
M_FILES_IDENTIFIER=default
3635
M_FILES_VAULT_GUID=ABC0DE2G-3HW-QWCQ-SDF3-WERWETWETW
3736
M_FILES_CACHE_DRIVER=file
3837
```
@@ -83,10 +82,8 @@ $config = new ConfigWithCredentials(
8382
url: 'https://your-mfiles-server.com',
8483
username: 'your-username',
8584
password: 'your-password',
86-
identifier: 'default',
8785
cacheDriver: 'file',
88-
requestTimeoutInSeconds: 15,
89-
vaultGuid: 'ABC0DE2G-3HW-QWCQ-SDF3-WERWETWETW',
86+
vaultGuid: '{ABC0DE2G-3HW-QWCQ-SDF3-WERWETWETW}',
9087
authenticationToken: null // Optional to handle authentication manually, leave null to use automatic token management
9188
);
9289

@@ -108,7 +105,7 @@ $request = new GetAuthenticationToken(
108105
url: 'https://your-mfiles-server.com',
109106
username: 'your-username',
110107
password: 'your-password',
111-
vaultGuid: 'ABC0DE2G-3HW-QWCQ-SDF3-WERWETWETW'
108+
vaultGuid: '{ABC0DE2G-3HW-QWCQ-SDF3-WERWETWETW}',
112109
);
113110

114111
$token = $request->send()->dto();

src/Requests/Authentication/GetAuthenticationToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ protected function defaultBody(): array
5151
$body = [
5252
'Username' => $this->username,
5353
'Password' => $this->password,
54-
'VaultGuid' => '{'.$this->vaultGuid.'}',
54+
'VaultGuid' => $this->vaultGuid,
5555
'SessionID' => $this->sessionId,
5656
];
5757

0 commit comments

Comments
 (0)