AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret

Microsoft 365

The AADSTS7000218 error came up while trying to get an Azure token using the device code flow. The Azure app registration had secret set & had redirect URI set to a web url.

The full error is shown below.

Error type : invalid_client.

Error description: AADSTS7000218: The request body must contain the following parameter: ‘client_assertion’ or ‘client_secret

AADSTS7000218 Error

The fix was to enable the ‘allow public client flows’ in the Azure app registration. Follow the steps below to enable public client flow for the app.

Navigate to the app registration within Azure. Select ‘Authentication’ from the left hand menu.

Authentication in app registration

Scroll all the way down & you will have a section titled ‘Allow Public Client Flows’. Set the toggle to ‘Yes’ and click on the ‘Save’ button. Wait for a few minutes before trying the device code flow again.

Allow public client flows in Azure app

Please let me know if you have any questions in the comments section.

Other Popular Articles


Microsoft 365

Tighten MFA Using Microsoft Authenticator Security Features Right Now!

Microsoft 365

Get Azure AD Users Based On Organizational Unit

Leave a Comment

Set Microsoft Edge As Default Browser Using Intune

The video below goes through the process of setting up Microsoft Edge as the default browser on a Windows 11 machine using Intune.

Set Microsoft Edge As Default Browser On Windows 11 Using Intune

Getting Started With Entra ID

The video below is aimed at complete beginners who can master the Identity portion of Entra ID in about 90 minutes.

Getting Started With Entra ID - Complete Beginner's Guide

How To Remove Teams Sharing Toolbar While Presenting

The new version of Microsoft Teams bring the ‘annoying’ sharing toolbar in the top middle of the screen while you are presenting in a Teams meeting. There is no way to remove the toolbar which come in between various tabs in a browser or applications that you want to move around.

The video below explains a workaround to remove this sharing toolbar for good while presenting. Hopefully Microsoft will add an option within the app to remove this in the near future.

How To Remove Teams Sharing Toolbar While Presenting