strongloop / loopback-component-oauth2

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

models will not be generated #82

Closed tschiela closed 5 years ago

tschiela commented 5 years ago

loopback: 3.23.0 loopback-component-oauth2: 3.2.0 loopback-connector-mongodb: 3.8.0

The routes will be setted up fine. But all related models to OAuth2 are totally missing. I cannot find in the explorer or when iterating over app.models

component-config.js

{
  "loopback-component-explorer": {
    "mountPath": "/explorer",
    "generateOperationScopedModels": true
  },
  "loopback-component-oauth2": {
    "dataSource": "mongo",
    "userModel": "Broker",
    "loginPage": "/login",
    "loginPath": "/login"
  },
  "loopback-component-model-diagram": {
    "mountPath": "/visualizer",
    "directives": {
      "edges": "rounded",
      "fontSize": 10,
      "fill": "#eee8d5",
      "fillArrows": false,
      "font": "DejaVu Sans Mono",
      "stroke": "#007bff",
      "title": "CyberDirekt Loopback Model Diagram",
      "zoom": 0
    }
  }
}

middleware.json

{
  "initial": {
    "compression": {},
    "cors": {
    },
    "helmet#xssFilter": {},
    "helmet#frameguard": {
      "params": [
        "deny"
      ]
    },
    "helmet#hsts": {
      "params": {
        "maxAge": 0,
        "includeSubdomains": true
      }
    },
    "helmet#hidePoweredBy": {},
    "helmet#ieNoOpen": {},
    "helmet#noSniff": {},
    "helmet#noCache": {
      "enabled": false
    }
  },
  "session": {
    "express-session": {
      "params": {
        "saveUninitialized": true,
        "resave": true,
        "secret": "keyboard cat"
      }
    }
  },
  "auth": {
    "loopback-component-oauth2#authenticate": []
  },
  "final": {
    "loopback#urlNotFound": {}
  },
  "final:after": {
    "strong-error-handler": {}
  }
}

What i did wrong? I also cannot find any hint in the docs or example project.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 5 years ago

This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.