-
Notifications
You must be signed in to change notification settings - Fork 49
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
Access a page under basic Auth #76
Comments
Hi @kabomi I could easily add the ability to use command line to authenticate, something like
However, that would make writing your command line pretty annoying (even if you only use the mandatory ones).
The only thing that's left is figure out how to attach the credentials to a specific feature (to match normal TestCafe behavior). [
"features": ["name1", "name2"],
"username": "your username",
"password": "your password",
"domain": "your domain, can be undefined",
"workstation": "your workstation, can be undefined"
] But this could also be a pain to maintain if you have many features or many credentials. What do you think? |
Hi @Arthy000 My use case is: A fixture with only one set of credentials, other fixtures that does not need them. Another idea could be to generate a file for every .feature file that needs credentials, like:
Any of the solutions would work for me! Thank you! |
Hi @kabomi I like that file idea, I'll try it tomorrow but I think it shouldn't be too hard |
http basic authentication can be used by creating a js file that contains the necessary credentials (as seen in testcafe documentation) => featureFileName.credentials.js re #76
@kabomi just pushed a branch with the changes as discussed. You can check the example I added. I'll leave you a few days to try it if you want. Merge and publish are coming but I still need to write some documentation :D |
Cool @Arthy000 I will test it and give you feedback. Awesome! |
Hey @Arthy000, |
http basic authentication can be used by creating a js file that contains the necessary credentials (as seen in testcafe documentation) => featureFileName.credentials.js re #76
Hi all,
I need to access a page that's behind basic auth. So I have to set httpAuth credentials probably at fixture level
But, I couldn't find a command line argument that I could pass on for that purpose.
Any ideas on how can I set the httpAuth credentials?
In the meantime, I'm going to give it a try with a proxy configuration
Cheers
The text was updated successfully, but these errors were encountered: