Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 178257

vCloud API multiple concurrent sso Federation Login session

$
0
0

We encountered inconsistent behavior on the vCD ssoLogin which return unauthorized error.

 

Following is the test scenario we performed

 

1) single SAML Assertion with multiple vCloudClient SDK instance

- obtained the authenticated SAML assertion

- base64 encoded + gzip to form the authorization header for vCloud API sso login for Federation session.

- spawn 5 threads, each created a new vCloudClient instance and feed with the same set of data

- use the vCloudClient's ssoLogin() method to perfromed login and invoke the get Org API

 

The result:

 


Try #1
Try #2Try #3Try #4Try #5
Thread 1okokokokerror
Thread 2errorokokokok
Thread 3errorokokokok
Thread 4errorokokokok
Thread 5okokerrorokok
overall success ratio2/55/54/55/54/5

 

ok: successfully login and followed by get org API call

 

The error returned is quite generic:

com.vmware.vcloud.sdk.exception.UnauthorizedAccessException: Unauthorized
    at com.vmware.vcloud.sdk.RestUtil.login(RestUtil.java:296)
    at com.vmware.vcloud.sdk.VcloudClient.ssoLogin(VcloudClient.java:416)

 

The does not seems to have any consistent pattern on the error response from vCD.

 

Any ideas where could be gone wrong?


Viewing all articles
Browse latest Browse all 178257

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>