andrewshilliday / garage-door-controller

Software to monitor and control garage doors via a raspberry pi
MIT License
327 stars 132 forks source link

How to disable Username/Passoword Authentication #19

Closed jm19063 closed 7 years ago

jm19063 commented 8 years ago

Is there a way to comment out the username/password requirement for controlling the garage door? I'm new at coding, so I'm not sure how. I'm assuming it's in the following lines:

clk = ClickHandler(self) args={self.config['site']['username']:self.config['site']['password']} checker = checkers.InMemoryUsernamePasswordDatabaseDontUse(**args) realm = HttpPasswordRealm(clk) p = portal.Portal(realm, [checker]) credentialFactory = BasicCredentialFactory("Garage Door Controller") protected_resource = HTTPAuthSessionWrapper(p, [credentialFactory]) root.putChild('clk', protected_resource)

Can anyone provide guidance on how to turn off the authentication?

Thank you.

jtonzi commented 8 years ago

Really late on this reply, sorry.

If you look down the Issues list, you'll see Feedback. In there it explains some code changes that were made on a different fork and then the config.json changes you need to make. This way you can turn it on and off with the config file.

andrewshilliday commented 7 years ago

Almost a year late, but as of the latest source code, you can set use_auth to false in the config.json file and it will not use a username or pw.