Title: Invalid client
Last modified: May 23, 2021

---

# Invalid client

 *  Resolved [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/invalid-client/)
 * Hi,
 * I am doing my best to follow the steps exactly as they are written. However I
   keep on getting this error:
 * invalid_client AADSTS7000215: Invalid client secret is provided. Trace ID: _REDACTED_
   Correlation ID: _REDACTED_ Timestamp: _REDACTED_
 * The only part I am confused by is the secret. I have two values to copy and I
   can only paste one. I have the secret VALUE and the secret ID.
    I can also only
   select 24m as max validity for the secret.
 * Thank you for the help. I have deactivated it for the time being as no mails 
   were coming through :).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [edwardcross](https://wordpress.org/support/users/edwardcross/)
 * (@edwardcross)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/invalid-client/#post-14473157)
 * Hi, by the sounds of it you’ve copied the ID rather than the secret. You will
   need to delete the current secret and recreate it (copying the secret value rather
   than the ID). You only get to copy the value of the secret when you create it.
   As soon as you reload the page you can never view the secret again (this is a
   security feature).
 *  Thread Starter [dyin](https://wordpress.org/support/users/dyin/)
 * (@dyin)
 * [4 years, 11 months ago](https://wordpress.org/support/topic/invalid-client/#post-14473334)
 * [@edwardcross](https://wordpress.org/support/users/edwardcross/) yup that did
   the trick :). Wrong code. Thanks for the super fast help.
    Just one last question.
   Is this plugin PHP 8 compatible?

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Invalid client’ is closed to new replies.

 * ![](https://ps.w.org/mail-integration-365/assets/icon-256x256.png?rev=2817704)
 * [WPO365 | Mail Integration for Office 365 / Outlook](https://wordpress.org/plugins/mail-integration-365/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mail-integration-365/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mail-integration-365/)
 * [Active Topics](https://wordpress.org/support/plugin/mail-integration-365/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mail-integration-365/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mail-integration-365/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [dyin](https://wordpress.org/support/users/dyin/)
 * Last activity: [4 years, 11 months ago](https://wordpress.org/support/topic/invalid-client/#post-14473334)
 * Status: resolved