-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to retrieve subscriber destination using IAS JWT token? #4428
Comments
Hi @preekmr-sap , could you share a snippet of the code that triggers this error? |
@mr-flannery Sure. I am trying to get the destination using the following snippet where I am passing IAS issues JWT token.
cURL command that gives the issuer error:
|
Could you try adding |
@mr-flannery It resolved the error. But I am not able to access the destination in the subscriber account. If the destination is present in provider destination service instance, then it works. Any thing we can do to access the destination that is present in the subscriber tenant?
|
Hi @mr-flannery I think we need I think the problem is that we are forwarding the same IAS token from the app -> reuse service -> getDestination method. That could be the reason why Kindly advise on how to proceed since this is a blocker for us. Thanks! |
Hi @preekmr-sap , in theory, you should not need to the token exchange, at least as far as I'm aware. Why this doesn't work in the Cloud SDK we must investigate. We will get back to you as soon as we have reproduced the issue or produced a working setup. Can you give us some more insights on how users are calling your service, especially what kind of token is used? |
Thanks @mr-flannery. Consumer apps will be calling our service using IAS JWT token. They may use Please do let me know if you need further information. Thanks! |
@preekmr-sap so I talked to a colleague and a few things are clearer to me. I still need to validate, but here's what I understood now:
The last time I looked into such scenarios, SMS and Zones were still a thing. I'm afraid I'm not up to date as to what services are currently used for such a scenario. Could you give me an overview of what service(s) you're using to implement the tenant lifecycle and subscription callbacks? Also, could you please send me a link to your repository? You'll find my name on my Github profile, and then you'll have my SAP address :) |
Hi @mr-flannery , As you are aware I have explored further. If I use the client_id and client_secret from the destination service binding for XSUAA token exchange, it works! But the |
I am following this documentation to retrieve the destinations. Currently I have destinations defined in the provider instance binding.
Our's is an IAS based reuse service and we do not use XSUAA. We want to use destination service to call the tenant specific API on a consumer app which is subscribed from a subscriber account. Such destinations from the service bindings of our reuse services are working fine whereas by using the IAS JWT token, the SDK is not able to fetch the destination from the subscriber tenant and prints following error:
Is there a way to overcome this issue and get the destination from subscriber account? Kindly suggest.
Versions in use:
The text was updated successfully, but these errors were encountered: