-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Steps to reproduce
The explorer seems to require authentication when it is set:
// Customize @loopback/authentication configuration here
this.configure(AuthenticationBindings.COMPONENT).to({
defaultMetadata: {
strategy: 'JWTStrategy'
}
})
this.component(AuthenticationComponent);
registerAuthenticationStrategy(this, JWTAuthenticationStrategy)
Expected Behavior
Should be set on all controllers, only controllers
Additional information
➜ xxxxxx-monitor-api git:(master) ✗ node -e 'console.log(process.platform, process.arch, process.versions.node)'
npm ls --prod --depth 0 | grep loopbackdarwin x64 14.4.0
➜ xxxxxx-monitor-api git:(master) ✗ npm ls --prod --depth 0 | grep loopback
├── @loopback/authentication@4.2.7
├── @loopback/boot@2.3.3
├── @loopback/context@3.9.0
├── @loopback/core@2.8.0
├── @loopback/openapi-v3@3.4.3
├── @loopback/repository@2.7.0
├── @loopback/rest@5.1.1
├── @loopback/rest-explorer@2.2.4
├── @loopback/service-proxy@2.3.2
├── loopback-connector-mssql@3.8.0
➜ xxxxxx-monitor-api git:(master) ✗
Related Issues
See Reporting Issues for more tips on writing good issues
