Your UX is waiting ...interact, engage, explore in Las Vegas at CloudWorld 2023

Learn more
idcs-sdk-sample-apps cannot work — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

idcs-sdk-sample-apps cannot work

edited May 11, 2018 7:00AM in Identity


idcs-sdk-sample-apps cannot work


I'm trying this example for IDCS SDK with Web application.

Does this example and SDK work fine you expected?  It seems that user information cannot be got from IDCS in the part of CallbackServlet.

//Getting the Access Token Value.

String access_token = ar.getAccessToken();

//The application then creates a User Session.

IDCSUserManager um = new IDCSUserManagerImpl(config);

IDCSUser user = um.getAuthenticatedUser(access_token);   <--- user is returned as null

Access token would be valid because I can get user information by using it with REST API. so I'm not sure what could cause this problem.

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!