d365collaborative / d365fo.tools

Tools used for Dynamics 365 Finance and Operations
MIT License
246 stars 102 forks source link

Understand the LCS cookie and how to work with it #799

Open Splaxi opened 9 months ago

Splaxi commented 9 months ago

https://github.com/MicrosoftDocs/dynamics-365-unified-operations-public/issues/631

FH-Inway commented 9 months ago

Very interesting, though with the planned sunsetting of LCS there is a time limit. Maybe take a look at https://github.com/microsoft/2LCS/blob/d7052a61c85161281d61a140b3a8623381695977/2LCS/Forms/MainForm.cs#L172-L200, it also uses cookies for authentication (though I yet have to figure out how it works in detail). Maybe @TomekMelissa can help?

FH-Inway commented 1 month ago

Unfortunately, the issue linked in the first post does not exist anymore. But the internet archive has a copy from October 29, 2020: https://web.archive.org/web/20201029135334/https://github.com/MicrosoftDocs/dynamics-365-unified-operations-public/issues/631

@milnet92 seems to have implemented the solution mentioned there with https://github.com/milnet92/LcsApi