Work for localauth scenario