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

  • Home
  • SEARCH
  • 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 6852933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:27:03+00:00 2026-05-27T01:27:03+00:00

I am trying to impliment Oauth for my webapplication for google.I am worked upon

  • 0

I am trying to impliment Oauth for my webapplication for google.I am worked upon a POC and it working fine but i have a confusion and not sure how best it can be achieved.

I am using scribe java API for Oauth.

here are the steps i am performing.

  1. Getting request token from Google.
  2. Redirecting user to Google to authenticate them self and authorize my serivice to access his/her few details.
  3. get Access Toekn from google by providing request token and verification code given by google.
  4. Accessing user info once google provide Access token.

now my main confusion is at step no 3, since i am working on a web-application so it will be a 2 step process.

  1. Redirecting user to google
  2. Handling back google redirect.

In order to get an Access token i need to provide same request token which i got at step1 else my request being rejected by the user.
The request token contains 2 things

  1. Toekn –>which is based on the registered application so not an issue
  2. Secret–>This is always being a random string so it should be same when asking for access token

that means i need to store this secret either in my session or some where so that i can access this secret when user is being redirected back to my application.

My confusion is,since in order to save it in session i have to create a unique key and some way to access it in the other action class which will handle Google Redirect back how can i achieve this since at a given time so many user can ask to login using google.

any help in this regard will be much appriciated.

Thanks in advance

  • 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-05-27T01:27:04+00:00Added an answer on May 27, 2026 at 1:27 am

    When you receive the request token + token secret, use the request token as the unique key of your session to store the token information. After the authorization process, in the callback url, you have access to the request token (it’s one of the parameters passed to the callback url). Using this parameter as the session key, you can restore the token information from session, including the token secret, and use it to sign your request for changing the request token for access token. After receiving the access token, a new token secret is returned to you and you can delete the old one from session.

    how can i achieve this since at a given time so many user can ask to
    login using google

    This is not of any problem because for every single user on your site, you are given a different request token.

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

Sidebar

Related Questions

I'm trying to implement Google's OAuth 2.0 authentication for a web server application. I
I am working from this reference , and trying to implement the OAuth protocol
I am trying to implement Oauth in google app engine on python. For my
I'm trying to implement a Twitter authentication via OAuth on my Django application, but
I'm trying to implement Google's hybrid OpenID+OAuth login on a Google AppEngine site. For
I'm trying to impliment jqueryui's autocomplete for multiple values but am having trouble. Options
I'm trying to impliment a confirmation box, but I need to edit the text
I'm trying to implement OAuth for Google, Twitter, Yahoo etc. on Android using the
I'm trying to implement sign in with Google using Oauth (using DotNetOpenAuth). I need
I'm trying to implement http://github.com/bengottlieb/Twitter-OAuth-iPhone/tree/master into my code. I'm following the Demo provided and

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.