ayushsharma82 / WebSerial

A remote terminal library for wireless microcontrollers to log, monitor or debug your firmware/product
https://webserial.pro
GNU Affero General Public License v3.0
461 stars 107 forks source link

Authentication #66

Closed mattronix closed 2 weeks ago

mattronix commented 1 year ago

Any tips on how i could implement basic auth?

tinkering4fun commented 5 months ago

Very late answer, but I get aware of this lib just a few days ago, and felt a need for enhancements in my project.

See my fork https://github.com/tinkering4fun/WebSerial-Custom-HTML and the new example Demo_Console. By reading this issue, I recognized it as good idea and implemented it. :-)

The trick are new parameters in the begin() method. If you just require auth, this should work.

WebSerial.begin(&server, "/webserial", "user", "password");

If you strive for modifications of the UI, see the new example Demo_Console for what my fork was intended for. See also my comments in issue #70.

github-actions[bot] commented 3 weeks ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

github-actions[bot] commented 2 weeks ago

This issue was closed because it has been stalled for 5 days with no activity.