当前位置: 动力学知识库 > 问答 > 编程问答 >

benchmarking - How to bypass authentication in a Padrino app with derailed_benchmarks

问题描述:

I am successfully using the derailed_benchmarks gem to benchmark/profile a Padrino app. I now need to bypass the app's user authentication to test various protected endpoints. The docs say a custom auth strategy must be defined in a class subclassing DerailedBenchmarks::AuthHelper and I am after an example (from someone who has done this) of how it may be done, for a Padrino app. I see Padrino has the facility to bypass authentication, so I guess this should be useful.

My app uses standard session-based username/password user authentication.

分享给朋友:
您可能感兴趣的文章:
随机阅读: