Closed remotevision closed 7 years ago
Not a bug. This was fixed by removing the component config from oauth.js and adding it to the component-config.json
// component-config.json
"loopback-component-oauth2": {
"dataSource": "db"
}
hi @remotevision,
Do you mind sharing the sources to see how you configured the component. I have been trying to follow your steps but I can't make it work, always got an authorized.
I think I'm missing the Application entry as I haven't been able to use your sample-data.json. I have been trying with a seed script in the boot folder, but I can't find the model to insert the App entry (I just started playing with loopback 2 days ago).
Thanks
@juaneduardodelgado yes, I'll create a standalone project and put it on github. you should know that I only needed it for clientCredentials
Bug or feature request
Description of feature (or steps to reproduce if bug)
When setting up an OAuth2 server, it appears the models are not being attached to the db. I have tried this a few different ways, including adding it to the
model-config.json
Link to sample repo to reproduce issue (if bug)
I created a gist that shows all of the relevant code and configurations. https://gist.github.com/remotevision/9bd478e08ce97929c69527dcff4e6a0d
Actual result (if bug)
a trace of the models.
Additional information (Node.js version, LoopBack version, etc)
I am using,