# /oauth2/default/registration not found during SMART App registration

**URL:** <https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548>\
**Category:** OpenEMR Development\
**Created:** [June 1, 2022, 12:28am UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548 "2022-06-01T00:28:58Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Kaustubh\_Pathak](https://community.open-emr.org/user_avatar/community.open-emr.org/kaustubh_pathak/32/18180_2.png) [@Kaustubh\_Pathak](https://community.open-emr.org/u/Kaustubh_Pathak)\
**Post date:** [March 16, 2023, 4:45pm UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/21 "2023-03-16T16:45:18Z")

</div>

Hi Stephen i have registered a swagger Smart app it gave me client id and client secret id but when i am trying to authorize it by clicking the Authorize Button it gives not found how to solve it

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/2/6/26e9d15fd08b0987d86ae0260982a9c756a1efc0.png)  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/c/c/cc64e5dea90ba682f85d5dee11a86c075315c1f2.png)

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [March 16, 2023, 9:50pm UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/22 "2023-03-16T21:50:44Z")

</div>

What’s the URL of the page giving you the 404?

---

<div class="post-metadata">

**Author:** ![Kaustubh\_Pathak](https://community.open-emr.org/user_avatar/community.open-emr.org/kaustubh_pathak/32/18180_2.png) [@Kaustubh\_Pathak](https://community.open-emr.org/u/Kaustubh_Pathak)\
**Post date:** [March 29, 2023, 9:43am UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/23 "2023-03-29T09:43:54Z")

</div>

Hi Stephen We are trying to config SSL ie From Openemr → Certificates We get A server Certificate And key We have Config It in httpd-vhosts.conf as in given image and installed the certificate using trusted Authority  
But we are not able to config it it is showing invalid certificate ,need your help Attaching All the pics needed  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/6/3/6307a10a8e38dd8d1b3ac924fc3269a8eabae763.png)

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/9/c/9ca6b794230582819a06711d8a200099cdd1b36f.png)

![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/b/f/bf717013d600ede80bcc81bb04266d5e5270f1a6.png)

Thanks & Regards  
kaustubh

---

<div class="post-metadata">

**Author:** ![adunsulag](https://community.open-emr.org/user_avatar/community.open-emr.org/adunsulag/32/12606_2.png) [@adunsulag](https://community.open-emr.org/u/adunsulag)\
**Post date:** [March 29, 2023, 4:41pm UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/24 "2023-03-29T16:41:44Z")

</div>

So its a self signed certificate which browsers automatically state are invalid since there is no CA in your trusted CA store that recognizes the certificate. Not sure I understand the problem. You either need to import the certificate into your local browser’s trusted certificate, or tell your browser to continue with the untrusted certificate.

---

<div class="post-metadata">

**Author:** ![Kaustubh\_Pathak](https://community.open-emr.org/user_avatar/community.open-emr.org/kaustubh_pathak/32/18180_2.png) [@Kaustubh\_Pathak](https://community.open-emr.org/u/Kaustubh_Pathak)\
**Post date:** [March 31, 2023, 1:39pm UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/25 "2023-03-31T13:39:02Z")

</div>

Hi Stephhen Now Everything is set done with oauth2 ie SSL is working ,configured self signed SSL is working, when registering Client Id it is providing but when authorizing using Swagger it gives 404 not found as shown in the image& logs is giving  
php:notice] [pid 2712:tid 1716] [client ::1:49298] [2023-03-31T15:28:33.405576+02:00] OpenEMR.ERROR: dispatch.php invalid access to resource {“resource”:“/fhir”}   
need your guidance and help  
Thanks & regards  
Kaustubh

 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/b/8/b8d402624cc8469f3beec03cb4802b0813940f46.png)  
 ![image](https://discourse-uploads-openemr.s3.dualstack.us-east-1.amazonaws.com/original/3X/5/f/5f312390c72b25e3df0d582cd959dd2e730c7f48.png)

---

<div class="post-metadata">

**Author:** ![sindhu](https://community.open-emr.org/letter_avatar_proxy/v4/letter/s/df788c/32.png) [@sindhu](https://community.open-emr.org/u/sindhu)\
**Post date:** [January 6, 2024, 12:22pm UTC](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548/26 "2024-01-06T12:22:49Z")

</div>

@adunsulag I am trying to do this in localhost.  
Admin → Globals → Connectors → Site Address I gave [http://localhost:9090](http://localhost:9090)

The url is same as the one I am trying to access openEMR. I am still getting 404.

I am not sure which .htaccess file I need to change. As you already told, default is coming from .htaccess.

Please help me what I am missing here. Thanks

[Previous page](https://community.open-emr.org/t/oauth2-default-registration-not-found-during-smart-app-registration/18548.md?page=1)
