LogOut authenticated user from delivery.com

116 views
Skip to first unread message

Himanshu Sharma

unread,
May 6, 2014, 7:18:24 AM5/6/14
to deliverydo...@googlegroups.com
Hello,

Is there any API to logout the current authenticated user from delivery.com?

I searched the developer documentation with keywords 'logout','log out','signout','sign out' , but it returned no results.

Regards.

mkaminski

unread,
May 7, 2014, 10:09:48 AM5/7/14
to deliverydo...@googlegroups.com
Hi Himanshu,

Using GET /third_party/authorize/logout will log the current user out and redirect the user to the login form.

Abhishek Gorti

unread,
May 15, 2014, 3:56:46 PM5/15/14
to deliverydo...@googlegroups.com
Hi, what are the parameters for this GET method?

Sixuan Liu

unread,
May 16, 2014, 10:35:43 AM5/16/14
to deliverydo...@googlegroups.com

Abhishek Gorti

unread,
May 16, 2014, 5:03:21 PM5/16/14
to deliverydo...@googlegroups.com
Hi, thanks for the reply, but even your example is not working... It shows a 400 error code and says

{"message":[{"code":"oauth_error","user_msg":"OAuth error: The
request is missing a required parameter, includes an invalid parameter
value, includes a parameter more than once, or is otherwise malformed.
Check the \"response_type\" parameter."
,"dev_msg":"OAuth error: The
request is missing a required parameter, includes an invalid parameter
value, includes a parameter more than once, or is otherwise malformed.
Check the \"response_type\" parameter."
}]}


                       

and I doubt that I'm doing anything wrong. I think something may be wrong with the API...
parameters = {
                 
'client_id' : app.config.get('DELIVERYAPI_CLIENTID'),
                 
'redirect_uri' : 'http://0.0.0.0:8000'
                 
}
    r
= requests.get('http://api.delivery.com/third_party/authorize/logout', params=parameters)
    flash
(r.content)
   
print r.status_code



Sixuan Liu

unread,
May 16, 2014, 5:08:08 PM5/16/14
to deliverydo...@googlegroups.com
Hi, 

My example's client_id is replaced with random characters. 

Can you please send me your full url of your get request? And you would also need parameters response_type, scope and state.

Thanks.
Sixuan

Abhishek Gorti

unread,
May 16, 2014, 5:11:53 PM5/16/14
to deliverydo...@googlegroups.com

Abhishek Gorti

unread,
May 16, 2014, 5:12:22 PM5/16/14
to deliverydo...@googlegroups.com
Is there any actual documentation page for the log out method?

Abhishek Gorti

unread,
May 16, 2014, 5:12:59 PM5/16/14
to deliverydo...@googlegroups.com
Sorry about that, my full url is "http://api.delivery.com/third_party/authorize/logout"

Abhishek Gorti

unread,
May 16, 2014, 5:22:29 PM5/16/14
to deliverydo...@googlegroups.com
Alright, so I redirect the user to the URL, and they are presented with a screen that says You are already logged in: log out. The log out link doesn't redirect me, it takes me to the login screen.

Sixuan Liu

unread,
May 19, 2014, 10:58:21 AM5/19/14
to deliverydo...@googlegroups.com
Hi Abhishek,

For now, after you click the log out, it's the expected behavior that it takes you to the login screen. 
We may think of supporting the redirect_uri feature after logging out and we will update our documentation once we're done with that.

Thank you so much,
Sixuan

gregory hutchinson

unread,
Jan 14, 2016, 10:57:02 PM1/14/16
to deliverydotcom API V2
Looks like your documentation for logout has been removed... why?

gregory hutchinson

unread,
Nov 12, 2016, 9:50:25 PM11/12/16
to deliverydotcom API V2
getting sandbox failing to logout... just wanted to check and see if logout endpoint has changed? seeing as i haven't made any updates to that code

Sixuan Liu

unread,
Nov 14, 2016, 10:32:13 AM11/14/16
to deliverydotcom API V2
Our log out endpoint does NOT revoke the access token, it clears the session storaged in the browser if you're a web based application.

Does that answer your question? 

gregory hutchinson

unread,
Nov 18, 2016, 4:44:12 PM11/18/16
to deliverydotcom API V2
made a new topic. you responded on that one. thanks for the info here as well.
Reply all
Reply to author
Forward
0 new messages