[Ovmsdev] Simple Auth for api
Chris van der Meijden
chris at arachnon.de
Fri Mar 14 00:38:20 HKT 2025
OK, it was not that hard ...
In the AuthNone.pm I changed the sub Authenticate to
sub Authenticate
{
my ($user,$password) = @_;
if ($user eq "xxx" && $password eq "yyy") {
return '*';
} else {
return '';
}
}
and activated AuthNone in the ovms_sever.conf
Am Donnerstag, dem 13.03.2025 um 11:34 +0100 schrieb Chris van der
Meijden via OvmsDev:
> I'm trying to connect our e-UP to EVCC using the http api.
>
> This fails, because I don't have a Drupal server installed. I only
> found AuhDrupal and AuthNone as modules for the the server.
>
> 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.
>
> Before I reinvent the wheel, does a code snippet perhaps exists, that
> does the trick?
>
> Regards
>
> Chris
> _______________________________________________
> OvmsDev mailing list
> OvmsDev at lists.openvehicles.com
> http://lists.openvehicles.com/mailman/listinfo/ovmsdev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20250313/5e0ffa85/attachment.htm>
More information about the OvmsDev
mailing list