在SAP Cloud Foundry Node.js应用程序中使用多个信任IDP(身份提供者)

2020-08-14 00:48发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)在Neo环境中,我们可以在应用程...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


在Neo环境中,我们可以在应用程序链接"?saml2idp = trust store"中提供查询参数,以使应用程序在访问HTML5应用程序时使用所需的信任设置。


云铸造应用中的方法是什么? UAA实施会自动获取当前的活动信任IDP,我如何操纵Cloud Foundry托管应用以使用特定的信任存储IDP(类似于在Neo环境托管应用中通过"?saml2idp =" url参数可以实现的功能)

4条回答
一只江湖小虾
2020-08-14 01:14

你好

Approuter负责向您的应用程序注入身份验证令牌。
您可以在xs-app.json定义的路由中定义身份提供者:

 [
  {
    " source":" ^/test/idp1/(.*)$",
    " target":"/thenameofmyui5application-1.0.0/$2",
    " service":" html5-apps-repo-rt",
    " identityProvider":" idp1",
    " authenticationType":" xsuaa"
  },
  {
    " source":" ^/test/idp2/(.*)$",
    " target":"/thenameofmyui5application-1.0.0/$2",
    " service":" html5-apps-repo-rt",
    " identityProvider":" idp2",
    " authenticationType":" xsuaa"
  }
 ]

//我没有测试此变体,但是应该做同样的事情...
 [
  {
    " source":" ^/test/([[^/]+)/(.*)$",
    " target":"/thenameofmyui5application-1.0.0/$2",
    " service":" html5-apps-repo-rt",
    " identityProvider":" $ 1",
    " authenticationType":" xsuaa"
  }
 ] 

kr,

Joachim

一周热门 更多>