Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8143609
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T13:09:47+00:00 2026-06-06T13:09:47+00:00

I have started using https://github.com/omab/django-social-auth and been successfully able to login via twitter, google

  • 0

I have started using https://github.com/omab/django-social-auth and been successfully able to login via twitter, google and facebook.

Needed

I need to query about the logged in user in order to do more things, which Model I shall be using for that?

I don’t see any examples for that

Thank you

Update

@Omab, I did not understand how this would work, can you please help. When I login with twitter, the callback goes to following code

@login_required
def done(request):
    """Login complete view, displays user data"""
    ctx = {
        'version': version,
        'last_login': request.session.get('social_auth_last_login_backend')
    }
    logging.warn('context - ' + str(ctx))
    logging.warn('request - ' + str(request))
    return render_to_response('home.html', ctx, RequestContext(request))

Can you tell me how can I access to user instance here?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T13:09:49+00:00Added an answer on June 6, 2026 at 1:09 pm

    The app stores the social account details using the UserSocialAuth model, to retrieve any instance just do:

    user.social_auth.filter(provider="...")
    

    Where:

    • user is a User instance (request.user for current logged in user)
    • provider is a string with the provider name (facebook, twitter, etc)

    The UserSocialAuth instance stores the needed tokens to call the needed API:

    print user_social_auth.tokens
    {...}
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using https://github.com/Redth/APNS-Sharp to send push notification message to all devices where
Recently I started using https://github.com/crowdint/rails3-jquery-autocomplete It works great, but I was trying to set
I'm using auto_complete plugin: https://github.com/crowdint/rails3-jquery-autocomplete I have installed the gem and added require line
I'm using Maven GAE plugin with JDO, I started with jappstart example (https://github.com/tleese22/google-app-engine-jappstart/blob/master/pom.xml), but
I have started using leaflet as an open source map, http://leaflet.cloudmade.com/ The following jQuery
I'm following https://github.com/amatsuda/kaminari_example/commits/ajax . I'm using kaminari 0.12.4. (I had check with 0.13.0 and
I'm using the demo example in https://github.com/nicklockwood/AsyncImageView to load images asynchronously, however my app
I have recently started parsing JSON documents using SBJSON Parser, and I am able
Using this tutorial https://vaadin.com/springroo , i was able to get a Spring Roo project
I have tried following the FB mobile web getting started guide at: https://developers.facebook.com/docs/guides/mobile/web/ for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.