Error validating client secret
Update your stored tokens to ensure that your app has tokens with the longest lifespan.If there are errors with authentication, the web browser is redirected to an error page.Although not strictly necessary, it can help you create a more intuitive experience for your users.To sign the user in, follow our v2.0 protocol tutorials.
Sign out and sign in as an administrator or contact one of your organization's administrators.
When you're ready to request permissions from the organization's admin, you can redirect the user to the admin consent endpoint.
You can make the API call such as the following: // Line breaks are for legibility only.
Typically, when you build an application that uses application permissions, the app requires a page or view on which the admin approves the app's permissions.
This page can be part of the app's sign-in flow, part of the app's settings, or it can be a dedicated "connect" flow.
Search for error validating client secret:
// Replace with the tenant (GUID or name) you need admin consent for // Replace with your Azure AD assigned application id GET https://login.microsoftonline.com//adminconsent?