com.apama.cumulocity
Event GetCurrentUser


Requests details about the current user.

Set authorization, for basic authentication, or authCookie and xsrfToken, for oauth authentication to get user details of a different user. If neither is specified, will fetch details of current user.

Returns GetCurrentUserResponse event, if user details are fetched successfully, else returns GetCurrentUserResponseFailed event.

Send this to GetCurrentUser.SEND_CHANNEL to get details of required user
Since:
10.5.2.0
See Also:
com.apama.cumulocity.GetCurrentUserResponse
com.apama.cumulocity.GetCurrentUserResponseFailed

Constant summary
 stringSEND_CHANNEL := "CumulocityIoTGenericChain"

Channel to send GetCurrentUser to.
 
Field summary
 integerreqId

Request identifier. Must be generated using com.apama.cumulocity.Util.generateReqId().
 stringauthorization

Authorization header of other user. Used for basic authentication.
 stringauthCookie

OAuth authorization cookie of other user. Both authCookie and xsrfToken must be provided for OAuth authentication. If either is absent, will fetch details of current user.
 stringxsrfToken

OAuth xsrfToken of other user. Both authCookie and xsrfToken must be provided for OAuth authentication. If either is absent, will fetch details of current user.
 
Constant detail

SEND_CHANNEL

string SEND_CHANNEL := "CumulocityIoTGenericChain"
Channel to send GetCurrentUser to.
Since:
10.5.2.0

Field detail

authCookie

string authCookie
OAuth authorization cookie of other user. Both authCookie and xsrfToken must be provided for OAuth authentication. If either is absent, will fetch details of current user.

authorization

string authorization
Authorization header of other user. Used for basic authentication.

reqId

integer reqId
Request identifier. Must be generated using com.apama.cumulocity.Util.generateReqId().

xsrfToken

string xsrfToken
OAuth xsrfToken of other user. Both authCookie and xsrfToken must be provided for OAuth authentication. If either is absent, will fetch details of current user.