loopbackio / loopback-connector-redis

EXPERIMENTAL: Redis connector for LoopBack.
http://loopback.io/doc/en/lb2/Redis-connector.html
Other
36 stars 46 forks source link

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

Open vjtc0n opened 7 years ago

vjtc0n commented 7 years ago

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:

kuongknight commented 6 years ago

The same issue with me!

jomaleda commented 6 years ago

Same happening to me

matteo-pennisi commented 6 years ago

+1