[GH-ISSUE #3613] Token refresh issue for Microsoft 365 #7716

Closed
opened 2026-08-05 01:14:12 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @rqi14 on GitHub (Apr 1, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3613

Describe the problem

After running for a few days, I cannot login or access the management panel anymore with token invalid error. Restarting the docker containers fixes the issue. I feel it might be that the token was not refreshed correctly.

To Reproduce

Steps to reproduce the behavior:

  1. host netbird with m365 idp for a few days
  2. login

Expected behavior

Token invalid error

Are you using NetBird Cloud?

Self-host

NetBird version

0.38.0

Is any other VPN software installed?

No

Debug output

To help us resolve the problem, please attach the following debug output

netbird status -dA

As well as the file created by

netbird debug for 1m -AS

We advise reviewing the anonymized output for any remaining personal information.

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • Checked for newer NetBird versions
  • Searched for similar issues on GitHub (including closed ones)
  • Restarted the NetBird client
  • Disabled other VPN software
  • Checked firewall settings
Originally created by @rqi14 on GitHub (Apr 1, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3613 **Describe the problem** After running for a few days, I cannot login or access the management panel anymore with `token invalid` error. Restarting the docker containers fixes the issue. I feel it might be that the token was not refreshed correctly. **To Reproduce** Steps to reproduce the behavior: 1. host netbird with m365 idp for a few days 2. login **Expected behavior** Token invalid error **Are you using NetBird Cloud?** Self-host **NetBird version** `0.38.0` **Is any other VPN software installed?** No **Debug output** To help us resolve the problem, please attach the following debug output netbird status -dA As well as the file created by netbird debug for 1m -AS We advise reviewing the anonymized output for any remaining personal information. **Screenshots** If applicable, add screenshots to help explain your problem. **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [ ] Checked for newer NetBird versions - [ ] Searched for similar issues on GitHub (including closed ones) - [ ] Restarted the NetBird client - [ ] Disabled other VPN software - [ ] Checked firewall settings
saavagebueno added the management-service label 2026-08-05 01:14:12 -04:00
Author
Owner

@heisbrot commented on GitHub (Apr 1, 2025):

Hey @rqi14,

If not already done, please turn IdpSignKeyRefreshEnabled to true and try again. (Found in the management.json config file)

<!-- gh-comment-id:2768624769 --> @heisbrot commented on GitHub (Apr 1, 2025): Hey @rqi14, If not already done, please turn `IdpSignKeyRefreshEnabled` to `true` and try again. (Found in the management.json config file)
Author
Owner

@rqi14 commented on GitHub (Apr 1, 2025):

Hey @rqi14,

If not already done, please turn IdpSignKeyRefreshEnabled to true and try again. (Found in the management.json config file)

Thanks! I didn't realise such option was available.

<!-- gh-comment-id:2768749852 --> @rqi14 commented on GitHub (Apr 1, 2025): > Hey [@rqi14](https://github.com/rqi14), > > If not already done, please turn `IdpSignKeyRefreshEnabled` to `true` and try again. (Found in the management.json config file) Thanks! I didn't realise such option was available.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#7716