strongloop / loopback-component-oauth2

oAuth 2.0 server for LoopBack
http://www.strongloop.com
Other
62 stars 63 forks source link

Incorrect relations in models #16

Closed claylo closed 9 years ago

claylo commented 9 years ago

The OAuthAccessToken and OAuthPermission models both have belongsTo relations pointing to the Application model, when as far as I can tell, the Application model doesn't enter into the OAuth flow at all. The correct relation is the OAuthClientRegistration model, is it not?