I have a very specific setup:
Logged-In CRM User - Client-Script
makes RestCall to
MyRestServer (Node.js)
makes WebApi-Call to
CRM
NOTE : NO User-Redirect (no adal)! everything must work "under the hood", the user must not log-in or anything (as he is already)
MyRestServer wants to fire requests against the CRM in behalf of the Logged-In CRM User
What I achieved:
- MyRestServer has a static username, pw, clientId, clientsecret and aquires a token for a admin-user.
- with the aquired token I can trigger any operation on the WEB-API
- But I want to act as the Logged-In User (with his restrictions)
How can I achieve this? As I can not get the username and password of the Logged-In user.
I can send to MyRestServer any information the browser provides (like tokens) but I dont know how I can transform/evaluate them to act as MyRestServer with Logged-In user rights