-
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
Support iss and userJwt Combination #3499
Comments
I thought about it a bit and currently we ignore the the
@ww917352 what do you think? |
Yes, that is what I tried to suggest in our meeting. If both are provided, there is no need to fetch a service token from the user token, because it can be fetched using |
Change to the code:
interface XsuaaToken {
type: 'xsuaa';
userJwt?: JwtPair;
serviceJwt: JwtPair;
}
|
Hi Frank, Any update on the plan to support this in V3? We are already using V3 now. Thank you! Cheers, |
The team has this on the agenda.
Best
Frank
|
The last PR to fix this was just merged. Now you should be able to use both |
Relates to this public issue or this BLI
In their project @ww917352 they are doing the following:
OAuth2RefereshToken
for that but this would mean one more call. So they do it directly@sap/xssec
library:This error comes from the fact, that we always try to get a service token for the given JWT. This was also an issue in the issue mentioned above. If they do the following:
X-user-token
header their user tokenauthorization
the provider service tokenMy initial idea to solve this issue would be the following:
selectionStrategy: alwaysProvider
on theexecuteHttpRequest({destinationName:'therDest', jwt:'ibtainedUserJwt', selectionStrategy: alwaysProvider})
There could also be the option that we allow to specify some headers directly in the fetch options of the destination. Then you could even combine with the
iss
property so you get a service token for some tenant and provide the usertoken manually to have full flexibility:The text was updated successfully, but these errors were encountered: