I have a LibreChat application that uses Microsoft OpenID Connect (Microsoft 365 login) for authentication.
For this, I created an app registration in Microsoft Entra ID (Azure AD) and configured authentication using a client ID and client secret. However, I can only configure the client secret expiration for a maximum of 2 years.
The problem is:
- When the client secret expires, the login to my application fails
This directly impacts my production system
Manual rotation of the client secret introduces operational risk
I would like to understand the available options to avoid this issue:
Is there any way to configure a client secret to never expire?
If not, can I use a certificate instead of a client secret for OpenID Connect authentication?
If I use a certificate, can it be configured with no expiration or very long validity?
What is the Microsoft-recommended best practice for production applications that need long-term authentication without downtime?
My goal is to ensure secure, stable authentication without unexpected production outages due to credential expiration.
Any guidance or recommendations would be appreciated.I have a LibreChat application that uses Microsoft OpenID Connect (Microsoft 365 login) for authentication.
For this, I created an app registration in Microsoft Entra ID (Azure AD) and configured authentication using a client ID and client secret.
However, I can only configure the client secret expiration for a maximum of 2 years.
The problem is:
When the client secret expires, the login to my application fails
This directly impacts my production system
Manual rotation of the client secret introduces operational risk
I would like to understand the available options to avoid this issue:
Is there any way to configure a client secret to never expire?
If not, can I use a certificate instead of a client secret for OpenID Connect authentication?
If I use a certificate, can it be configured with no expiration or very long validity?
What is the Microsoft-recommended best practice for production applications that need long-term authentication without downtime?
My goal is to ensure secure, stable authentication without unexpected production outages due to credential expiration.
Any guidance or recommendations would be appreciated.