Skip to content

Explorer blocked by the authentication module #5758

@frbuceta

Description

@frbuceta

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)

Screenshot 2020-06-17 at 12 20 12

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

#4782 (comment)

See Reporting Issues for more tips on writing good issues

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions