Skip to content

User logout feature

José Bonnet edited this page May 16, 2017 · 6 revisions

Input data

Results

204 (No content)

Errors

When unsuccessful, the user logout request returns:

  • 401(Unauthorized) when...

Examples

$ curl -X DELETE -H 'Authorization:bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhOWV5Rm96V2Z6aEVrWWdBMmFycVVuM1Niay1Sd2NwVlVwbjQ5UXVGVmdRIn0.eyJqdGkiOiJmNzhhMDdjNy0wMWMxLTQzOTctYjliMi1kZTZiOTk0ZTBjZTYiLCJleHAiOjE0OTQ5NDA5MjksIm5iZiI6MCwiaWF0IjoxNDk0OTQwNjI5LCJpc3MiOiJodHRwOi8vc29uLWtleWNsb2FrOjU2MDEvYXV0aC9yZWFsbXMvc29uYXRhIiwiYXVkIjoiYWRhcHRlciIsInN1YiI6ImY4MmNhYjljLWI2MTAtNDE3My1hMTM2LTVkNWEyMWUyMTEyMiIsInR5cCI6IkJlYXJlciIsImF6cCI6ImFkYXB0ZXIiLCJhdXRoX3RpbWUiOjAsInNlc3Npb25fc3RhdGUiOiIzMTU5MWE3Zi1hNjgwLTQ0N2UtOTBhZS03NjkxYTlhOTU2YzEiLCJhY3IiOiIxIiwiY2xpZW50X3Nlc3Npb24iOiJjNmM1YTU4Mi03YmY3LTQ1YzAtYWQwYy1lOTM1NzIzYmNiMDQiLCJhbGxvd2VkLW9yaWdpbnMiOlsiaHR0cDovL2xvY2FsaG9zdDo4MDgxIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJkZXZlbG9wZXIiLCJ1bWFfYXV0aG9yaXphdGlvbiJdfSwicmVzb3VyY2VfYWNjZXNzIjp7ImFjY291bnQiOnsicm9sZXMiOlsibWFuYWdlLWFjY291bnQiLCJtYW5hZ2UtYWNjb3VudC1saW5rcyIsInZpZXctcHJvZmlsZSJdfX0sIm5hbWUiOiIiLCJwcmVmZXJyZWRfdXNlcm5hbWUiOiJqYm9ubmV0IiwiZW1haWwiOiJqYm9ubmV0QGFsdGljZWxhYnMuY29tIn0.gI9ihL30mdvM3yl-RXRiWL5fomL9vJGcNqt0axz51MG5rqjS9EZJ0FYYZGBGUueItyZOruuqUJC9aNFArg_3qvX8334Qi7lqjzsAhr6WjTaokn0TMB76RSZ--arAtIwrTIHsQcC33SvhTTBgiLzbJE0pDYylGcgnQBQqgGuAvXNAuLbkxdOJlwOCHMz3hIKAmF0PyYINsRSSfJmzCJoj6oxvxv-k92tE0K_ocZz8w18vhrr3Y0hYTAxYcQ7VNiWTQQBQt4tYp7LVRmjzTscsEVN175HhqMKyn4dnOCyAlDDR_HebJkJFdfyAPJDjWIvqVY-JPW0DKS94jdxnwhndIA' <SP IP address>:<SP port>/api/v2/sessions
{"error":{"code":401,"message":"Unauthorized: user token not active"}}

See also

Clone this wiki locally