0

因此,如果没有提供身份验证,浏览器将显示登录页面,但后端也会接受带有有效不记名令牌标头的调用。

那可能吗?如果是这样,怎么做?

我们在一个入口后面的同一个命名空间中有几个 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.,所以我觉得应该可以同时使用这两个同时。

4

1 回答 1

0

您可以使用 Ingress 注释在同一命名空间中保护具有不同 requestType 的多个服务。语法是:

ingress.bluemix.net/appid-auth: "bindSecret=binding-appid-01 requestType=web serviceName=service1;bindSecret=binding-appid-01 requestType=api serviceName=service2;bindSecret=binding-appid-02 requestType=web serviceName=service3;"

于 2019-03-12T20:59:56.213 回答