Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BFF token with k6 authentication flow? #1

Open
thangchung opened this issue May 8, 2024 · 0 comments
Open

BFF token with k6 authentication flow? #1

thangchung opened this issue May 8, 2024 · 0 comments

Comments

@thangchung
Copy link

thangchung commented May 8, 2024

First of all, thanks for your work on the BFF token pattern. That's really cool and I learnt a lot from your repos.

Currently, I use this kind of pattern and the code is nearly the same as the code in this repo. Everything works very well. But now, the team need to work on k6 for load testing (API and web components). I can handle it by recording the flow for Microsoft Entra External ID, but it might be cumbersome and unstable (let's say we enable 2FA or customise authentication flow on CIAM, and the k6 script needs to be modified by adding more steps).

In the documents of k6, there are only a few options like HTTP auth, and token with OAuth 2.0.. In the past, when we did this with k6, we used OAuth 2.0 auth (authorisation code flow + pkce on SPA), and then it was quite easy to follow the guidance on the k6 document, and we could run headless mode and put it run on CI/CD.

My question is if we still use k6, then any approach based on your experience to make this kind of loading testing (or integration testing possibly)? Hope to hear your opinion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant