delegateas / XrmDefinitelyTyped

Tool to generate TypeScript declaration files for Dynamics 365/CDS client-side coding.
http://delegateas.github.io/Delegate.XrmDefinitelyTyped/
MIT License
133 stars 53 forks source link

Cannot generate files due to Authentication error #264

Closed szmarci closed 2 years ago

szmarci commented 2 years ago

Describe the bug

Yesterday it was working, but now we are getting this error:

Unable to generate TypeScript files: An error occurred when processing the security tokens in the message: You are using Ws-Trust authentication which has been deprecated and no longer supported in your environment. Please use OAuth2.0 authentication.

misoeli commented 2 years ago

Already supported - see DAXIF documentation. While that documentation is written for F#, the arguments are the same in a config file or command line, and reusable across all tools.

szmarci commented 2 years ago

So from now on I can only get this tool to work if I generate an app id & secret in azure portal?

skovlund commented 2 years ago

I've updated the documentation, which now also includes the sample app id provided by Microsoft. But the recommended approach is to generate an app registration yourself. It does not need a secret though.

szmarci commented 2 years ago

@skovlund Thanks, can you give me a link to that? I can't seem to find it.

skovlund commented 2 years ago

Sorry, I updated the DAXIF documentation which might not have been clear from my comment.

szmarci commented 2 years ago

I see, thanks!