loopback-connector-redis icon indicating copy to clipboard operation
loopback-connector-redis copied to clipboard

Lost relation between AccessToken and User when using AccessToken stored in redis

Open vjtc0n opened this issue 7 years ago • 3 comments

Description

Can't use AccessToken Model stored in redis datasource. Actually, we can store the access_token datas in database, but it loses the relation to User model.

Lines cause the problem (bug)

In: https://github.com/strongloop/loopback/blob/master/common/models/access-token.js Lines: 242 to 249.

In line: User = AccessToken.registry.findModel(this.principalType);

I found that User is undefined somehow.

Additional information

Version: loopback 3.14.0

Other questions:

  • what are the differences between this repo and: https://github.com/strongloop/loopback-connector-kv-redis ?
  • Is this repo still maintained or not? Thank you.

vjtc0n avatar Oct 03 '17 09:10 vjtc0n

The same issue with me!

kuongknight avatar Feb 07 '18 09:02 kuongknight

Same happening to me

jomaleda avatar Apr 02 '18 21:04 jomaleda

+1

matteo-pennisi avatar Jul 12 '18 22:07 matteo-pennisi