Hi All
I'm not very sure if it is the correct forum to discuss this or not.. but thought it might still be relevant to CRM and so posting here.
I have an Azure function which requires AAD Authentication to access. My users can use the Client ID & Secret to connect to this function and call it. Inside the function, I need to authenticate to CRM and do some CRUD Actions. For better security, I have to use the same user credentials to connect to CRM as well. Now, I can't really ask the user to pass on the credentials along with the function params was wondering if there is any way to use the same authentication token passed to function headers and generate the CRM service using it? Does any one tried this before?
I have tried this but I'm getting
On one hand I'm feeling the error is still correct coz' my user actually authenticate to Azure function rather than CRM and so the token will have reference only to Azure functions but on the other hand I'm also wondering coz it is the same Azure AD at the end the user authenticated against and the function also has delegated permissions to CRM.
Any one any idea/suggestions on how to avoid authentication to CRM inside Azure function?
Thank you
-Srikanth