Skip to content

Instantly share code, notes, and snippets.

@syakesaba
Created July 27, 2014 02:36
Show Gist options
  • Select an option

  • Save syakesaba/30f1e66132cedef8c1a3 to your computer and use it in GitHub Desktop.

Select an option

Save syakesaba/30f1e66132cedef8c1a3 to your computer and use it in GitHub Desktop.
def _callback_uri_for(self, provider):
if (provider in secrets.AUTH_CONFIG.keys()):
if provider == "google":
return "https://paper-mobile.appspot.com/auth/google/callback"
return self.uri_for('main', provider=provider, _full=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment