question

SriGowrisetti-3363 avatar image
0 Votes"
SriGowrisetti-3363 asked SriGowrisetti-3363 commented

AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '2178EC9E-2D83-4524-AB6E-A8A565E45FE9'

Request Id: 6d796513-f805-4262-ab43-26fbe5df9c01
Correlation Id: d601b60f-ca3a-4441-991e-345637de0cf7
Timestamp: 2021-05-27T11:27:57Z
Message: AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application: '2178EC9E-2D83-4524-AB6E-A8A565E45FE9

Please help to find the reply url specified in the request.

azure-active-directory
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

MarileeTurscak-MSFT avatar image
0 Votes"
MarileeTurscak-MSFT answered

Hi @SriGowrisetti-3363,

I checked your correlation ID and it says that the reply URL specified in the request is:

 https://businesscentral.dynamics.com/OAuthLanding.htm

But that URL is not listed in the list of Reply URLs configured for your application.

The reply URL in your code needs to match exactly what you have configured in the App Registration and there cannot be any extra slashes, parameters, spaces, etc. The tenant ID and App ID/Client ID in the portal must also match what you have configured in your code for the application.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

sikumars avatar image
0 Votes"
sikumars answered

Hello @SriGowrisetti-3363,

Thanks for reaching out.

To resolve the issue, make sure the reply url in the authentication request matches with the reply url (redirect uri) registered in the application.

Based on above CorrelationID/RequestID, Reply url specified in the request is https://businesscentral.dynamics.com/OAuthLanding.htm so please update same in your application. (App ID : 2178EC9E-2D83-4524-AB6E-A8A565E45FE9).

More information, read : https://docs.microsoft.com/en-nz/dynamics365/business-central/ui-extensions-vat-group#requirements-for-authentication

Hope this helps.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SriGowrisetti-3363 avatar image
0 Votes"
SriGowrisetti-3363 answered SriGowrisetti-3363 commented

Thanks for the reply. I have updated this URL as reply URL with our App registration at Azure Active Directory. So the issue is fixed.

But we are getting these errors when we are trying to access the data from Business central by ODataV4 services with Oauthentication.

ERROR when are trying to access Business Central Standard ODatav4 services :

S2S application cannot log in using client type: ChildSession.
CorrelationId: 07ec2443-3ac8-4a24-a6ea-0cd80919e165.

ERROR when are trying to access Business Central ODatav4 Service which is related our extension :

You do not have access to this object using an application as authentication.
CorrelationId: 771b12ca-5283-4a16-a847-f05b996997a6.

Please help me on this. If we are missing any permissions


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I think that message has to do with OAuth. I believe that OAuth will only connect to the Business Central API, and it looks like basic authentication isn't supported anymore in production environments.

"With Business Central online, the use of access keys (Basic Auth) for web service authentication is deprecated. We recommend that you use OAuth2 instead. "

Ref: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/webservices/web-services-authentication

(Checking on your CorelationId now.)

0 Votes 0 ·

Hello @MarileeTurscak

We are not using the basic authentication. We trying to access the webservice via Oauth.

We are generating the token and using that to access the data from business central via webservice.

Additional Info: we are able to retrieve the data from postman using same credentials. But when we use the token that we generated from our code is throwing those errors.

Please check the issue by correlation id and give the information

Thanks.

0 Votes 0 ·