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 7935615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:58:42+00:00 2026-06-03T21:58:42+00:00

I want to allow users to sign up and login to my Java web

  • 0

I want to allow users to sign up and login to my Java web app using their Twitter account. The only information I need from their Twitter account is their name (or Twitter username if a name has not been provided) and their email address.

I came across the scribe OAuth library that provides an example of how to use it to authenticate with Twitter from a console app. However, I can’t figure out how to adapt this to a web app. I don’t think I can use this example “as is” because it contains code like:

Scanner in = new Scanner(System.in);

that won’t work from a webapp. Also, I can’t see how to retrieve the user’s name and email address once the authentication has completed.

If someone could point me towards a complete example of how to authenticate with Twitter (using OAuth) from a Java webapp and retrieve the user’s name and email, that would be great. The example doesn’t necessarily have to use scribe, though the less code I have to write myself, the better.

  • 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-03T21:58:43+00:00Added an answer on June 3, 2026 at 9:58 pm

    You need to have an endpoint in you application that receives the verifier.

    If you go the OOB way, like in the example, the client will have to perform the call to your endpoint manually:

    curl http://example.com?verifier=123456
    

    If you use callback like this:

    Service service = new ServiceBuilder().callback("http://example.com"). //rest of the config
    

    Twiiter will perform the call itself and redirect the user browser to your endpoint.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using Omniauth to allow users to sign in (and create an account) through
I want to allow users to sign up to my website using Facebook. I
I want to create a web application that allows users to sign up, register
I want to allow users to make their own Python mods for my game,
I am making an application in Java and I want to allow users to
I'm building a simple web based forum application. I want to allow users to
I have created Twitter bots for many geographic locations. I want to allow users
I want to allow users to import their Facebook education and experience entries into
We want to allow DB access (Oracle) to our users only through our own
In my web application, I need to be able to allow users to upload

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.