Developer forum

Forum » Integration » Acquiring a Token from Business Central

Acquiring a Token from Business Central

Joseph Vause
Reply

Hello,

We are running Dynamic Web on a Linux Container in Azure.

When attempting to acquire a token from Business Central we are getting the following error once it redirects back to Dynamic Web from BC

 

SetAuthorizationCode failed: Operation is not supported on this platform.

Can you please advise what this error could be related too?


Replies

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi Joseph,

Which authentication method are you using? Service-to-service or user impersonation? If it is the latter, try service-to-service as it doesn't require you to acquire the token via manual login.

BR Rasmus Sanggaard

 
Joseph Vause
Reply

Hello Rasmus,

We are currently using User Impersonation, is it because the return endpoint is a aspx page? Which I believe isn't supported on Linux .net core?

 

Thanks

 
Rasmus Sanggaard Dynamicweb Employee
Rasmus Sanggaard
Reply

Hi,

I think you need to try the Service-to-Service approach as it does not require manually logging in, thus not having the issue with the returning aspx page. 

https://doc.dynamicweb.dev/manual/tutorials/integration/s2s-guide.html

https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/administration/automation-apis-using-s2s-authentication

 

BR Rasmus Sanggaard

 
Dmitriy Benyuk Dynamicweb Employee
Dmitriy Benyuk
Reply

Hi Joseph,
that issue will be fixed in #20570, so until then you can try to use the Service-to-Service authentication type.
BR, Dmitrij

 

You must be logged in to post in the forum