DrkSephy / django-hackathon-starter

A boilerplate for Django web applications
1.62k stars 299 forks source link

Change flow of API examples #21

Open DrkSephy opened 9 years ago

DrkSephy commented 9 years ago

Currently, some API examples require the user to be specifically authenticated to a particular service. For example, the Facebook example will not work if the user is authenticated with Google+. We should have a method that will redirect the user to be authenticated for the proper API method (i.e, if the user is currently logged in through Facebook and wants to use the Dropbox API, we should re-direct the user to be authenticated through Dropbox). This should be done for all the API examples that require authentication.

Also for the examples done by @mk200789, I propose we change the re-direct url structure like this:

Questions and comments are welcome. This would greatly improve the user flow, as right now it requires the user to log out and log back in with the proper method, and would remove having the user go back to the main page after authenticating for an API examples (as shown by the Twitter example).