You have to call this method when you want to logout an user from your application, that previously do the login with DRUID.

Please, read first: to learn about Oauth2 protocol and the meaning of each token.

Endpoint URL:

 POST https://{}/activityid/v1/user/leave

Request parameters

Authorization“Bearer access_token” Literal text Bearer followed by access_token that is the user session token obtained after user loginstringyes
Content-TypeThe type of content that will be used for requests to be JSONstringyes
AcceptThe type of content that will be used for responses to be JSONstringyes
FromName of the entry pointstringyes
Accept-LanguageLanguage of this requestLocaleno

Request example

actor.idobject_id of user you want to log outstringyesobject_id
actor.objectTypeType of the object which represents the actor.stringyes‘person’
verbVerb used for the loginstringyes‘leave’
source.idType of device doing the activitystringyes‘unknown’ | ‘pc’ | ‘mobile’ | ‘tablet’ | ‘game_console’ | ‘itv’
source.objectTypeType of sourcestringyes‘device’

Response example: user logout

result.statusHTTP status codeint

Response codes

400ErrorBad Request: The request could not be understood by the server due to malformed syntax
401ErrorUnauthorized: authentication is required and has failed or has not yet been provided (token is invalid, etc)
500ErrorInternal Server Error: The server encountered an unexpected condition which prevented it from fulfilling the request
504ErrorGateway TimeoutService can not contact with oauth server to do some internal operations
200SucessUser logged out successfully.