-
-
Notifications
You must be signed in to change notification settings - Fork 253
Since we force opts.prompt = "none"
below the option is retained.
#119
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
Conversation
This means if the code is re-called without re-loading `opts` the call to authenticate will be done with `opts.prompt = "none"` again, where user interaction would be expected. This happens if `opts` is declared as a global value in openresty/nginx, such as by: `init_by_lua_file "/usr/local/openresty/nginx/conf/conf.d/server.lua";` in `nginx.conf`, where `server.lua` contains the `opts` structure. This happens when the server owner needs a global `opts` declaration reachable by all `server {}` structures in nginx.
do not, and doing so prevent normal functionality. In fact, before the test, there was a condition where the parameter was already forced to `none` and the current test wasn't covering this issue.
Note: I had to drop the test checking that the |
I guess a better approach would be to explicitly pass a prompt parameter into |
with this PR we'd break code that explicitly asks for the prompt parameter when calling One option not breaking backwards compatibility could be to only add the explicit parameter to |
@gdestuynder bodewig@195c955 is an alternative solution |
I'd prefer Stefan's approach if acceptable @gdestuynder |
@bodewig that sounds alright |
thanks, see #120 |
hah great thank you! |
This means if the code is re-called without re-loading
opts
the callto authenticate will be done with
opts.prompt = "none"
again, whereuser interaction would be expected.
This happens if
opts
is declared as a global value in openresty/nginx,such as by:
init_by_lua_file "/usr/local/openresty/nginx/conf/conf.d/server.lua";
in
nginx.conf
, whereserver.lua
contains theopts
structure.This happens when the server owner needs a global
opts
declarationreachable by all
server {}
structures in nginx.