CI/CD performance testing with OAuth-only authentication

I’m trying to run automated Lighthouse tests on authenticated pages in CI/CD, but hitting authentication challenges.

Setup:

  • Auth0 with only Google OAuth and Passwordless Email (no passwords)
  • Need to test authenticated pages in GitHub Actions

Problem:

  • Auth0 M2M requires password authentication (which we can’t enable)

Current solution: Puppeteer UI automation of Google OAuth flow
Issue: Brittle, slow, may hit CAPTCHAs

Question: Is there away to authenticate with OAuth providers in CI/CD for performance testing, or is UI automation the only option?

Hi @Tanisha
Welcome to the Auth0 Community! I have moved this question to our Get Help category so one of our community engineers can assist you. For additional help in the future, please search for answers first, and if you need further assistance, please post in our Get Help category, as our community engineers track incoming inquiries.

Thanks,
Christina

Hi @Tanisha

Welcome to the Auth0 Community!

I am sorry about the delayed response to your inquiry!

You should be able to use the Client Credentials Grant in order to return an access token for your Auth0 M2M application instead of authentication with a password. This blog article provides a good example on that.

Let me know if the information above is helpful regarding the matter or if you have any other questions!

Kind Regards,
Nik

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.