microsoft / azure-load-testing

MIT License
22 stars 2 forks source link

[Feature Request]Documentation for load testing authenticated applications using Azure AD B2C and Azure AD #100

Open MaluSiv opened 1 year ago

MaluSiv commented 1 year ago

Most of our web applications are authenticated applications. We are using Azure AD and Azure AD B2C for authentication. Could you please provide documentation on creating test scripts for authenticated applications?

AB#1612376

Sachid26 commented 1 year ago

Hi @MaluSiv ... have you tried using environment variables for you used case? you can find the details here https://docs.microsoft.com/en-us/azure/load-testing/how-to-parameterize-load-tests . let us know in case of any problems

ntrogh commented 1 year ago

@MaluSiv We have added a new article in the product documentation about testing authenticated endpoints: https://learn.microsoft.com/en-us/azure/load-testing/how-to-test-secured-endpoints?tabs=portal Does this guidance help you with your scenario?

EricHunsberger commented 1 year ago

This article was helpful in describing how to generate access tokens in JMeter - https://www.vanderveer.io/jmeter-azure-ad-no-plugins/

ahmedsza commented 1 year ago

@MaluSiv We have added a new article in the product documentation about testing authenticated endpoints: https://learn.microsoft.com/en-us/azure/load-testing/how-to-test-secured-endpoints?tabs=portal Does this guidance help you with your scenario?

I was also interested in this. Unfortunately the doc above does not cover how a scenario where you have Azure B2C can be tested. it would be great to have end to end doc. @EricHunsberger link is useful but does not cover B2C

ntrogh commented 1 year ago

@ahmedsza One of the PMs has posted a blogpost about authenticating with Azure AD. Would this be helpful? https://techcommunity.microsoft.com/t5/apps-on-azure-blog/authentication-with-azure-load-testing-series-azure-active/ba-p/3718002

ahmedsza commented 1 year ago

Thanks @ntrogh . This looks useful. It uses Azure AD rather than B2C but I will see if can apply some of the techniques and make it work for B2C. If someone does have any tips for B2C that would be great. If i get it working, I will share it!