RESTool icon indicating copy to clipboard operation
RESTool copied to clipboard

Adding authentication/authorization

Open JeffreyStrahm opened this issue 5 years ago • 7 comments

It would be nice if we could make users authenticate themselves. Maybe add a username and password field, with the password field replacing the characters with dots. That way this could be a more widely used interface that could be used by teams that need to limit what people can do.

JeffreyStrahm avatar Jun 10 '19 19:06 JeffreyStrahm

@JeffreyStrahm That's a great idea, I've added a card in RESTool's backlog. https://github.com/dsternlicht/RESTool/projects/1#card-22817356

dsternlicht avatar Jun 16 '19 18:06 dsternlicht

@dsternlicht Is this feature a work in progress? I need Basic Auth done by the users themselves and was going to add it in my fork but maybe things are already in progress for this?

laudibert avatar May 11 '20 11:05 laudibert

@laudibert No. In this case I'll reopen the issue.

dsternlicht avatar May 11 '20 13:05 dsternlicht

is someone working on this? i can help. I need this for making my feature live.

febinsathar avatar May 28 '20 09:05 febinsathar

I have a very simple Basic Auth implemented on a fork. I don't know if that's what you're looking for but if it is, I can help with what I have.

laudibert avatar May 29 '20 07:05 laudibert

thanks pls share your fork @laudibert

febinsathar avatar May 30 '20 09:05 febinsathar

Here it is: https://github.com/laudibert/RESTool/tree/simple-auth-page Once again, only works with Basic Auth. But you can surely go from there for anything else. You also need to set unauthorizedRedirectUrl: '/#/login' in your RESTool configuration.

laudibert avatar May 30 '20 10:05 laudibert