Application loosing the Office365 connection after 90 to 100 minutes from time of initiating connection.

Varaprasad Pasam 1 Reputation point
2022-09-26T10:04:09.073+00:00

Getting below exception in 90 to 100 minutes after initiating the connection with office365.

A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details. Original exception: AADSTS7000218: The request body must contain the following parameter: 'client_assertion' or 'client_secret'.

Actual problem is, application is loosing connection with mail server (office365) in 90 to 100 minutes from the time of initiating the connection. And I have to provide credentials again to continue. And this is because of Azure setting "Allow Public Client flows" is set to NO.

After setting the option "Allow Public Client Flows" set to yes, there is no problem, mail server is not disconnecting.

My doubt is why is it happening with default azure setting "allow public client flows = No".?
What are the cons/ side effects will happen if I set the "Allow Public Client flows = yes", Is is safe or not?.

Thanks& regards,
Varaprasad.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,711 questions
Exchange Server Development
Exchange Server Development
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Development: The process of researching, productizing, and refining new or existing technologies.
516 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 41,921 Reputation points
    2022-09-26T10:35:53.417+00:00

    Hi @Varaprasad Pasam ,

    Yes the fix is the only way to sort out the dreaded AADSTS7000218 error message, however regarding the cons /side affect there is a detailed explanation of the auth process over here and will clear your doubts. whats-the-security-implication-of-changing-the-default-client-type-from-confidential-to-public-in-azure-ad

    Hope this helps.

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. JimmySalian-2011 41,921 Reputation points
    2022-09-29T05:07:42.467+00:00

    Hi,

    I’m checking how the things are going on about this issue?

    ==
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments