Question:
Is it possible to execute an azure-pipeline-task with different user context?
Background:
In my azure devops pipeline I want to execute acceptance-tests in separate pipeline tasks with different user contexts. (e.g. call API endpoint A with admin-user/power-user/regular-user,...)
Three ways come to my mind to possibly achieve that:
- System.Net.NetworkCredential Class (create different
HttpClientHandler per user) - http proxy (use different proxies that act as users to handle NTLM authentication)
- azure-pipeline-task with different user context (don't know if it is possible)