Cannot send Authorization Bearer Token using Springfox

后端 未结 7 838
无人及你
无人及你 2021-02-08 05:59

I\'m having trouble understanding why \"Authorization: Bearer __\" is not being sent in my api using Springfox 2.5.0. I have the following configuration:

private         


        
7条回答
  •  礼貌的吻别
    2021-02-08 06:27

    I am using latest version of springfox(right now it's 3.0.0), and you can use specific bearer auth with HttpAuthenticationScheme instead of ApiKey:

    HttpAuthenticationScheme
        .JWT_BEARER_BUILDER
        .name("JWT")
        .build()
    

提交回复
热议问题