Notifications
Announcements
No record found.
I tried to use the below code to get the user Token in D365 X++, but it always return null, not sure what is wrong, Does anyone have idea on this?
Thanks in advance
*This post is locked for comments
What are you trying to achieve by your code? What would you do with the token? What's the namespace of OAuthHelperFactory?
By the way, please separate tags by comma; you created a single long tag (I've already fixed it).
Hi Martin,
We want to get the user token in D365 and pass it to a web service call. the namespace of OAuthHelperFactory is"Microsoft.Dynamics.AX.Security.AuthenticationCommon".
Thanks,
As I already asked on Yammer, what do you mean by the user token? I'm not aware of any such term in OAuth. There are access tokens, refresh tokens and so on, but no user tokens.
If you mean getting the access token for AX, it's useless for calls to other services, therefore your technical solution isn't achievable. If you tell us what business problem you're trying to solve, maybe we'll be able to suggest a solution that would actually work.
We want to get the user AD token and replace a palceholder in web service URL.
Thanks
I'm sorry, but I can't help you until you answer my question.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2