You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -349,6 +349,34 @@ The refresh token can show as expired/invalid due to several reasons. You can ch
349
349
350
350
In these scenarios, users need to reconnect. This triggers an interactive sign-in process in Microsoft Entra that issues a new refresh token and access token.
351
351
352
+
## <aname="reauthenticate"></a>Azure VPN Client with Entra ID authentication doesn't prompt the user to reauthenticate every time it disconnects
353
+
354
+
### Cause
355
+
356
+
An Azure VPN client connecting using point-to-site with Entra ID authentication doesn't require interactive reauthentication when disconnected.
357
+
358
+
The recommended sign-in frequency (SIF) or refresh token expiry time for the best experience with the Azure VPN Client should be set to greater than 2 hours, depending on what works best for the customer. This means the customer will remain connected for that duration without needing to reauthenticate interactively.
359
+
360
+
Setting the SIF to "every time" is not recommended, as it would require interactive reauthentication every hour, causing frequent disconnects.
361
+
362
+
With the sign-in cache enabled (default), the token is stored in permanent storage, allowing reconnection without interactive reauthentication even after disconnection, as long as the refresh token is valid. Meaning, the reconnection duration is within the SIF or refresh token expiry time.
363
+
364
+
### Solution
365
+
366
+
To ensure the Azure VPN client is prompted for reauthentication every time it gets disconnected, the customer can use the "sign-in cache disabled" option in the Azure VPN Client (version 4.0.0.0 and later). The customer can modify the user profile (XML) setting `cachesigninuser` to `false`.
367
+
368
+
```
369
+
<azvpnprofile>
370
+
<clientauth>
371
+
<aad>
372
+
<cachesigninuser>false</cachesigninuser>
373
+
</aad>
374
+
</clientauth>
375
+
</azvpnprofile>
376
+
```
377
+
378
+
When the sign-in cache is disabled, the token is stored in in-memory storage, valid for one connection (or session), regardless of its duration (from 30 minutes to 90 days). Once the connection is disconnected, the in-memory token is dropped. The duration of one connection depends on the refresh token expiry time or the SIF.
379
+
352
380
## VPN client error: Dialing VPN connection \<VPN Connection Name\>, Status = VPN Platform did not trigger connection
353
381
354
382
You might also see the following error in Event Viewer from RasClient: "The user \<User\> dialed a connection named \<VPN Connection Name\> which has failed. The error code returned on failure is 1460."
0 commit comments