...
Get a Single Sign-on token
try { GetSingleSignOnToken ss=new GetSingleSignOnToken(); ss.setToken(ticket); ss.setUsername(<username>); ss.setTimeToLiveSeconds(360); GetSingleSignOnTokenResponse ssResp=stub.getSingleSignOnToken(ss); if (ssResp!=null) { System.out.println("Single Sign on Token: " + ssResp.get_return()); } //Can now append the token to any InTime URL to use access it without logging in. E.g. //https://demo.in-time.co.uk/placement/show?placement=<placement_id>&ticket=<token> } catch (Exception e) { System.out.println("Exception occurred: " + e); } |
---|