Hi,
i need get current user otcs tokes and pass it to java application, which will be used it for further calls to CS.
i am able to get the token from below code, Adnd try authenticate from java application it is throughing the "un authriesed request" i am trying this in CS16.2 version.
same token is valid in 10.5 ( 10.5 http_cookie is also can be used as token ) 16.2 http cookie also invalied for authencation.
Is there any way to otcs token for authencation or can we get user password from current loged in user using oscrit code?
// GET CURRENT REQUEST HANDLER OBJECT AND OTCS TOKEN FROM RH
Object currentReqHandler
String otcsTicket
currentReqHandler = $WEBDSP.RequestHandlerSubsystem.GetCurrentRequestHandler()
if ( IsDefined( currentReqHandler ) )
otcsTicket = CSUI::Utils.GetOTCSTicket( currentReqHandler )
// Although the global header says the return type is a string, undefined can be returned
if ( IsUndefined( otcsTicket ) )
otcsTicket = ''
end
end