webssh2 icon indicating copy to clipboard operation
webssh2 copied to clipboard

rfe: modal method to collect user credentials

Open billchurch opened this issue 4 years ago • 7 comments

collect credentials via browser modal box as an alternative to basic auth.

Soliciting for ideas as to how this would be used. Potentially asking for username / password or ssh-rsa key (risky).

billchurch avatar Nov 15 '19 21:11 billchurch

#244 #196

billchurch avatar May 19 '21 14:05 billchurch

tagged for inclusion in #244

billchurch avatar May 19 '21 14:05 billchurch

Can't speak for other uses... but I'm wanting to create a classic bbs door host... over a custom SSH, then overload the username and issue an TOTP for each request...

user: escape(username)@escape(bbscode)/escape(gamecode)
pass: TOTP_CODE

Where I can deduce from the user, their username, origin bbs, and the door name they want to connect to... then I can associate this with a TOTP code that was issued and only valid for 30s to connect (with +/- 30s drift support).

This way, known systems can send users straight into a game... Initially, I'd like to only support web users from my main site, but eventually expand/adapt to support more use cases.

It's been a while, but I seem to remember having trouble getting browsers to support passing the username + password as part of the url string for basic auth. With a popover modal / iframe, I could then pass in the values, then have those values somehow returned via a return_url to the webssh2 and from there send it to the associated ssh host.

Hopefully I've explained this desire well enough... although, I'd be more than fine using HTTP_POST values from a hidden form in order to pass them discretely from the user.

tracker1 avatar Jul 06 '22 23:07 tracker1

This makes more sense as a separate RFE, even though it might be related to modal...

I opened #290 to talk about this and track it, but it feels like it would be fairly straight forward.

billchurch avatar Jul 07 '22 11:07 billchurch

@tracker1 Check out #290 and main to give this a test. It seems like this is all that's needed for the initial functionality. I'll work on adding the rest of the GET vars to the POST options.

Please verify this works for your use (in #290) and then I will port the rest.

billchurch avatar Jul 07 '22 15:07 billchurch

@tracker1 any chance you were able to take a look at #290

billchurch avatar Jul 31 '22 01:07 billchurch

@billchurch sorry, no, I haven't tried it yet...

tracker1 avatar Aug 23 '22 02:08 tracker1