How does the browser's native login prompt work and how to use it programmatically
This is another one of those rather interesting problems that I had to solve at my day job and since I knew little about how to solve it when I first came across it, I am going to blog about it. I am sure there are others like me, who may not know how to solve it when tasked with such a problem. Problem So I am working on a Java based project at work(lets call it Project X ) for which my latest task was to change the way it handles login. Problem details I think it's best I provide some context before I describe my problem, so here we go, You see when you try to access a certain restricted area of a web-app when not logged-in the browser will show you a login prompt, and only when you enter the right credentials, will you be able to access that area of a web-app. That entire process of seeing the login prompt, entering the credentials etc requires human intervention and my task was to achieve all that programmatically i.e. without any human intervention for Project...