Skip to Content

Using multiple trust IDP (identity providers) in sap cloud foundry node.js application

In Neo environment we can provide the query parameter in the application link "?saml2idp=trust store" to make the application use desired trust setting when accessing the HTML5 application.


What would be the approach in cloud foundry application ? The UAA implementation automatically gets the current active trust IDP, how can I manipulate the Cloud Foundry hosted app to use particular trust store IDP (similar to what you can achieve by "?saml2idp=" url parameter in Neo environment hosted applications)

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 19, 2019 at 07:11 AM

    Hi,

    Approuter is responsible for injecting the authentication token to your application.
    You can define the identity provider in the route defined in the 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"
     }
    ]
    
    // I did not test this variant, but it should do the same ...
    [
     {
       "source": "^/test/([^/]+)/(.*)$",
       "target": "/thenameofmyui5application-1.0.0/$2",
       "service": "html5-apps-repo-rt",
       "identityProvider": "$1",
       "authenticationType": "xsuaa"
     }
    ]

    kr,

    Joachim

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.