因此,如果没有提供身份验证,浏览器将显示登录页面,但后端也会接受带有有效不记名令牌标头的调用。
那可能吗?如果是这样,怎么做?
我们在一个入口后面的同一个命名空间中有几个 kubernetes 服务,并用
ingress.bluemix.net/appid-auth: "bindSecret=binding-appidname namespace=somenamespace requestType=api serviceName=service-a"
requestType=web
也可以,但requestType=api,web
不起作用,使用相应的请求类型添加两次注释也不起作用。
AppId 文档(https://console.bluemix.net/docs/services/appid/tutorial-kubernetes-auth.html)在 "serviceName": 的描述中声明To use multiple request types in the same cluster, configure an instance of App ID to use web and another to use api.
,所以我觉得应该可以同时使用这两个同时。