Title: Breaking oauth process.
Last modified: November 29, 2021

---

# Breaking oauth process.

 *  Resolved [jas](https://wordpress.org/support/users/jaskaranpreetsingh/)
 * (@jaskaranpreetsingh)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/braked-oauth-process/)
 * Hi!
 * I am using this plugin and other plugin used for REST API calls authentication
   is [https://wordpress.org/plugins/oauth2-provider/](https://wordpress.org/plugins/oauth2-provider/)
 * But after adding content restrictions below urls are no more accessible :
 * [https://www.example.com/oauth/authorize/](https://www.example.com/oauth/authorize/)
 * [https://www.example.com/oauth/token/](https://www.example.com/oauth/token/)
 * Please suggest.
 * Thanks!
    -  This topic was modified 4 years, 6 months ago by [jas](https://wordpress.org/support/users/jaskaranpreetsingh/).

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

 *  Thread Starter [jas](https://wordpress.org/support/users/jaskaranpreetsingh/)
 * (@jaskaranpreetsingh)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/braked-oauth-process/#post-15113183)
 * I have to add code in function named `public static function template_redirect()`
   in file wp-content/plugins/content-control/classes/Site/Restrictions.php
 *     ```
       if(isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/oauth/authorize'){
                   return;
               }
               if(isset($_SERVER['REQUEST_URI']) && $_SERVER['REQUEST_URI'] == '/oauth/token'){
                   return;
               }
       ```
   
    -  This reply was modified 4 years, 6 months ago by [jas](https://wordpress.org/support/users/jaskaranpreetsingh/).
 *  Plugin Support [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * (@mlchaves)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/braked-oauth-process/#post-15132908)
 * Hello [@jaskaranpreetsingh](https://wordpress.org/support/users/jaskaranpreetsingh/),
 * Thanks so much for your post and for sharing your solution. We’ll add this as
   a feature request to consider for a future release.
 * Have a great day 🙂

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

The topic ‘Breaking oauth process.’ is closed to new replies.

 * ![](https://ps.w.org/content-control/assets/icon-256x256.gif?rev=2968535)
 * [Content Control - The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More](https://wordpress.org/plugins/content-control/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/content-control/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/content-control/)
 * [Active Topics](https://wordpress.org/support/plugin/content-control/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/content-control/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/content-control/reviews/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)
 * [feature](https://wordpress.org/support/topic-tag/feature/)
 * [OAuth](https://wordpress.org/support/topic-tag/oauth/)
 * [rest](https://wordpress.org/support/topic-tag/rest/)

 * 2 replies
 * 2 participants
 * Last reply from: [mark l chaves](https://wordpress.org/support/users/mlchaves/)
 * Last activity: [4 years, 6 months ago](https://wordpress.org/support/topic/braked-oauth-process/#post-15132908)
 * Status: resolved