Here I demonstrate the process of Basic Authentication in web.py python web framework. There is a proof of concept article provided in the main site,however I just thought doing the same via an attribute might be a cleaner solution. HTTP Basic authentication implementation is one of the easiest ways to secure web pages because it doesn’t require cookies, session handling, or the development of login pages. Rather, HTTP Basic authentication uses static headers which means that no handshakes have to be done in anticipation,however the n the credentials are passed as plain-text and could be intercepted.