You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building a hasher we may pass a backend to check for specific options. For Postgres, docs say the prefix should be pg, just as in other Postgres related options, but here we are passing postgres instead, resulting in specific hasher options being discarded: https://github.com/iegomez/mosquitto-go-auth/blob/master/go-auth.go#L257
This may be true for other backends too.
The solution would be to have a backends map name => prefix and derive the correct prefix to pass to the hasher from it.
The text was updated successfully, but these errors were encountered:
When building a hasher we may pass a backend to check for specific options. For Postgres, docs say the prefix should be
pg
, just as in other Postgres related options, but here we are passingpostgres
instead, resulting in specific hasher options being discarded: https://github.com/iegomez/mosquitto-go-auth/blob/master/go-auth.go#L257This may be true for other backends too.
The solution would be to have a backends map
name => prefix
and derive the correct prefix to pass to the hasher from it.The text was updated successfully, but these errors were encountered: