postgresql - Where are loopback users stored? -


i using loopback. default, has users api. using postgres via loopback-connector-postgresql.

following first 2 pieces of code on this guide, able create users can't figure out how view users.

firstly, when try users under /explorer route. receiving 401 authorization required. can't find user data in postgres db either. checked databases , tables , found nothing referring user. users being persisted to?

i modified model-config.json user see if can access:

"user": {   "datasource": "mydb",   "public": true } ... 

but no luck.

based on loopback docs can specify memory data must stored in server/datasources.json this:

  "db": {     "name": "db",     "connector": "memory",     "file": "mydata.json"   } 

for more information can read : https://docs.strongloop.com/display/public/lb/memory+connector

notic:

the memory connector designed development , testing of single-process application without setting database. cannot used in cluster worker processes have own isolated data not shared in cluster. can persist data between application restarts using file property. see data persistence more information.

for view or manage users must create new model , extend loopback default user model assign postgresql connector model in server/model-config.json. next register new user save in postgresql database.

or change user model datasource postgresql in server/model-config.json this:

 "user": {     "datasource": "mongodb"   } 

be aware changing observable after first insert in users model.

see this project can learn how config it.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

python - pip wont install .WHL files -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -