Logout Documentation is gone, old was with third_party url -- Password Flow what to do now?

12 views
Skip to first unread message

gregory hutchinson

unread,
Nov 13, 2016, 4:19:50 PM11/13/16
to deliverydotcom API V2
Hi!

Used to be able to logout via the third_party/authorize/logout api endpoint but seems to be failing now... I'm on the password flow, whats the endpoint for logging out and any documentation on this?

cheers

gregory 

Sixuan Liu

unread,
Nov 14, 2016, 11:14:52 AM11/14/16
to deliverydotcom API V2
I think that endpoint was for authorization_code flow apps. If you're password flow, when your user clicks log out in your app, you can simply clear user's session(access_token etc) on the client side and then request a new guest token and set to user's session so the user will then jump into guest experience. 

(Little background here: for autorzation_code flow apps, while user logs out your app, you're logging our your app, so he/she can be logged out of your app but still logged in with delivery.com service, that way, when your users want to log back in, they don't have to type credentials to delivery.com again. This is a good reading.)

Hope this is helpful.
Reply all
Reply to author
Forward
0 new messages