Hi Team,
I'm working on the OCP standalone application and I'm getting the following error when I am running from local server. Please throw some light on this issue
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
@spandianpitchai looking at the error it seems that you use the url https://<replace with region>.api.opentext.com/tenants/<replace with tenant_id>/.well-known/openid-configuration
Check your code and update the <replace with region> part with the region your organization/tenants exists, for example na-1-dev, us, etc. and then also use the actual tenant-id instead of <replace with tenant_id>.
A valid url would look like: https://us.api.opentext.com/tenants/ac27b708-9309-48b1-b5f9-2afcc38f71fa/.well-known/openid-configuration
Thanks for your reply. I have updated the environment variables but ended up like this.
This error indicates that you need to allow your redirect url for the application service client. In Admin Center open the service client config op de app you created and add your redirect url (https://localhost:4000 most likely looking at your screenshot).
Have a look at the tutorial at https://mimage.opentext.com/ot/2/devx/vscode/latest/vscode-tutorial.pdf, where we show you how to develop an app that uses several OCP services, including authentication. It also has the actual code for the app.
I have already configured the Redirect URL for the specific app in service client, still the issue persists
Check the app configuration and make sure that you specified the correct service client. Your .env should have the Public Client ID. Looking at your above screenshot it seems you're using a different client.
I have mistakenly used the global public ID instead of App public ID.
My issue is resolved now.
Thanks a lot.