Developer forum

Forum » Dynamicweb 10 » DW10 OAuth 2.0 User Impersonation Silent Token Refresh Not Working Business Central On Premise

DW10 OAuth 2.0 User Impersonation Silent Token Refresh Not Working Business Central On Premise

Thiago Tedesco
Reply

Hello, the solution in question is on version 10.14.1, and the customer is running BC On Prem 23. I am currently using the OAuth 2.0 User Impersonation Authentication Type to connect to their environment. I am able to get a token successfully when clicking the get token button but the token is not refreshing on its own. The automatic refresh works fine in Postman but I am unsure on where to check for logs to confirm if the refresh attempt is being made and how if so how it is failing in DW. Does DynamicWeb log these refresh attempts?

 

Thank you!


Replies

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply
This post has been marked as an answer

Hi Thiago,
yes, you can activate the additional logging for that. You need to go to the Files root directory and open the file GlobalSettings.config and under the path "Globalsettings/Modules" add a new section called "EndpointManagement" and add the option <EnableLog>True</EnableLog>:
<Globalsettings>....
    <Modules>.....
       <EndpointManagement>
             <EnableLog>True</EnableLog>
       <EndpointManagement>
    </Modules>
Save and close the file and then restart the website to activate the logging.
Then once you would have tried to login the log files will be located in the folder: /Files/System/Log/EndpointManagement
BR, Dmitrij

 

Votes for this answer: 1
 
Thiago Tedesco
Reply

Thank you, Dmitriy! That got me what I needed.

-Thiago

 

You must be logged in to post in the forum