<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Chris,<div><br></div><div>If you’d like to provide a simple contribution to the project it would be:</div><div><br></div><div><ul class="MailOutline"><li>AuthSimple.pm</li><ul class="MailOutline"><li>Use the Config::IniFiles config file we already have, with a new section to store the userid, password, etc.</li></ul></ul></div><div><br></div><div>For users wanting to run their own server, but only having one user, that would be useful.</div><div><br></div><div>Regards, Mark.<br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 14 Mar 2025, at 12:38 AM, Chris van der Meijden via OvmsDev <ovmsdev@lists.openvehicles.com> wrote:</div><br class="Apple-interchange-newline"><div><div><div>OK, it was not that hard ...</div><div><br></div><div>In the AuthNone.pm I changed the sub Authenticate to</div><div><br></div><div>sub Authenticate</div><div> {</div><div> my ($user,$password) = @_;</div><div> if ($user eq "xxx" && $password eq "yyy") {</div><div> return '*';</div><div> } else {</div><div> return ''; </div><div> }</div><div> }</div><div><br></div><div>and activated AuthNone in the ovms_sever.conf</div><div><br></div><div><br></div><div><br></div><div>Am Donnerstag, dem 13.03.2025 um 11:34 +0100 schrieb Chris van der Meijden via OvmsDev:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div>I'm trying to connect our e-UP to EVCC using the http api.</div><div><br></div><div>This fails, because I don't have a Drupal server installed. I only found AuhDrupal and AuthNone as modules for the the server.</div><div><br></div><div>I don't want to install a Drupal instance for only one user, so I'm now trying to write a AuthSimple module for only one user with the username and password included in the code (I know, unsecure), so that the authentication for that user goes through and I get the variables I need for EVCC.</div><div><br></div><div>Before I reinvent the wheel, does a code snippet perhaps exists, that does the trick?</div><div><br></div><div>Regards</div><div><br></div><div>Chris</div><div><span></span></div><div>_______________________________________________<br></div><div>OvmsDev mailing list<br></div><div><a href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a><br></div><div><a href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a><br></div></blockquote><div><br></div><div><span></span></div></div>
_______________________________________________<br>OvmsDev mailing list<br>OvmsDev@lists.openvehicles.com<br>http://lists.openvehicles.com/mailman/listinfo/ovmsdev<br></div></blockquote></div><br></div></body></html>