Skip to content

Commit 30845d4

Browse files
Scicas 3580 ias token exchange (#1887)
* SCICAS-3580: - bugfix: fixed the way the xsuaa token is created
1 parent 679ca14 commit 30845d4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

token-client/src/main/java/com/sap/cloud/security/xsuaa/client/XsuaaTokenExchangeService.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public Token exchangeToXsuaa(
5555
identity = new ClientCredentials(clientId, xsuaaConfig.getClientSecret());
5656
}
5757
return Token.create(
58-
"Bearer "
59-
+ tokenService.retrieveAccessTokenViaJwtBearerTokenGrant(
60-
tokenEndpoint, identity, idToken.getTokenValue(), params, false, zid));
58+
tokenService
59+
.retrieveAccessTokenViaJwtBearerTokenGrant(
60+
tokenEndpoint, identity, idToken.getTokenValue(), params, false, zid)
61+
.getAccessToken());
6162
}
6263
}

0 commit comments

Comments
 (0)