Make local authentication use config variable

See #273