on ‎2022 Aug 11 3:35 PM
Hi Guys. I created a cloud application with approuter. When a user goes to the link there are a few identity providers(cloud foundry). I would like to retrieve a token for one of them. For example, A is the first provider (default), B is another (connected to ByD). I need a token for the second one. Which API endpoint do I need to use? Thanks

Request clarification before answering.
Hi,
as far as I understand, the scenario is as follows:
Your app and your approuter are bound to an instance of XSUAA.
When the user logs in, the token is issued by this XSUAA - (oauth-server)
However, the xsuaa is not the Identity Provider.
As such, XSUAA will delegate the user-verification to the connected IdP.
Not matter which one is chosen (depends on the user, where he is stored)
So if I'm correct, to fetch a JWT token, you always turn to the URL which is revealed to you in the binding of XSUAA to your app (use cf env <appname> to view the credentials) or you create a service key for the XSUAA instance, then view the credentials there.
Does this sound reasonable?
Cheers,
Carlos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.