duanhuang3074 2018-08-16 10:29
浏览 1283

API平台:有没有办法完全关闭JWT身份验证?

I am using API Platform to build an API. I have an entity that represents a pairing between two devices, and I want to expose it.

In my entity definition, I have placed an @ApiResource before the start of the class.

The class now shows up automatically in my /docs screen:

screenshot

But when I try to visit /pairings, I get this response:

{ "code": 401, "message": "JWT Token not found" }

... and even when I comment out the two lines under the access_control section in my security.yaml this message persists.

Is there a way to turn JWT authentication off entirely?

  • 写回答

1条回答 默认 最新

  • dongqiaochi2711 2018-10-31 16:14
    关注

    You might have enabled it in the api_platform configuration as explained here.

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器