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

cannot get it do anything :) #2

Closed
working-name opened this issue Nov 7, 2020 · 3 comments
Closed

cannot get it do anything :) #2

working-name opened this issue Nov 7, 2020 · 3 comments

Comments

@working-name
Copy link

Hi there,

I installed it, followed instructions and so on. There's no apparent changes in etherpad's behavior.

Do I need to set anything else up in settings.json? I don't want a full fledged auth/oauth mechanism, and this seems like the most sensible thing to do: present a password form - if correct set the headers and load etherpad.

Thanks

@JohnMcLear
Copy link
Member

Is your reverse proxy setting the header? You need something in between etherpad and your browser here.. Nginx/apache/Varnish et al..

@working-name
Copy link
Author

Yes, nginx is between my browser and etherpad. I tried with both the header set and without it.

// from intranetwork machine, through nginx still:
Nov  7 20:32:52 etherpad node[19142]: #033[31m[2020-11-07 20:32:52.493] [ERROR] console - #033[39m{ inspect: [Function: inspect] }
Nov  7 20:32:52 etherpad node[19142]: #033[32m[2020-11-07 20:32:52.558] [INFO] Minify - #033[39mCompress CSS file css/pad.css.
Nov  7 20:32:52 etherpad node[19142]: #033[32m[2020-11-07 20:32:52.643] [INFO] Minify - #033[39mCompress CSS file skins/colibris/pad.css.
Nov  7 20:32:52 etherpad node[19142]: #033[32m[2020-11-07 20:32:52.816] [INFO] Minify - #033[39mCompress CSS file ../../node_modules/ep_table_of_contents/static/css/toc.css.
Nov  7 20:32:52 etherpad node[19142]: #033[32m[2020-11-07 20:32:52.827] [INFO] Minify - #033[39mCompress CSS file ../../node_modules/ep_comments_page/static/css/main.css.
Nov  7 20:32:52 etherpad node[19142]: #033[32m[2020-11-07 20:32:52.837] [INFO] Minify - #033[39mCompress CSS file ../../node_modules/ep_comments_page/static/css/comment.css.
Nov  7 20:32:53 etherpad node[19142]: #033[32m[2020-11-07 20:32:53.356] [INFO] access - #033[39m[ENTER] Pad "doit": Client tINasB0hOOT-Lw72AAAJ with IP "10.0.0.201" entered the pad
Nov  7 20:32:53 etherpad node[19142]: #033[32m[2020-11-07 20:32:53.488] [INFO] Minify - #033[39mCompress CSS file ../../node_modules/ep_headings2/static/css/editor.css.
Nov  7 20:32:53 etherpad node[19142]: #033[32m[2020-11-07 20:32:53.539] [INFO] Minify - #033[39mCompress CSS file ../../node_modules/ep_comments_page/static/css/commentIcon.css.
Nov  7 20:33:13 etherpad node[19142]: #033[32m[2020-11-07 20:33:13.330] [INFO] access - #033[39m[LEAVE] Pad "doit": Author "a.ZhmX4U9byjD9pXy2" on client tINasB0hOOT-Lw72AAAJ with IP "10.0.0.201" left the pad
Nov  7 20:33:18 etherpad node[19142]: #033[31m[2020-11-07 20:33:18.349] [ERROR] console - #033[39m{ inspect: [Function: inspect] }
// from a private mode iOS device on the mobile network not local wifi:
Nov  7 20:33:22 etherpad node[19142]: #033[32m[2020-11-07 20:33:22.208] [INFO] access - #033[39m[ENTER] Pad "doit": Client OCZF5iEJq2UUSY0vAAAL with IP "107.77.215.78" entered the pad

No mention of the existence of the header or absence thereof, no "authenticate:" log entries. The client did not inherit the name given by proxy_set_header x-authenticated-user "headerme";

@working-name
Copy link
Author

Update: the only time this plugin pops up in logs is when I access /admin which means etherpad needs to be ran with "requireAuthentication": true. Not very obvious to a newcomer.

NB: it overrides the /admin login prompt also, aka your admin login will no longer work once you enable this plugin. You'll have to handle admin logins externally as well.

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

2 participants