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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:26:15+00:00 2026-06-04T06:26:15+00:00

I have a project that requires an ASP.Net app to use google credentials and

  • 0

I have a project that requires an ASP.Net app to use google credentials and so authorization is in oauth 2.0.

I have formed a valid request for authorization to google’s APIs, but the response (and the token with it) is returned after a hash character ‘#’. Kinda like:

[sample http link:] myredirecturi.com/oauthcallback#token=thetokenvalue…

What I was expecting was it was in the format of a querystring, i.e., after a question mark ‘?’:

[sample http link:] myredirecturi.com/oauthcallback?token=thetokenvalue…

The reason I am having problems with this is I can’t reference the token in server-side ASP.net.

To call this request, basically what I am doing is doing a Response.redirect to google’s url, but it seems to think I need a client-side response to it.

So, my question is, how do I make google respond in a querystring?

If it helps, this is what I’m basing most of my work on: https://developers.google.com/accounts/docs/OAuth2Login

Thanks.

  • 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-04T06:26:16+00:00Added an answer on June 4, 2026 at 6:26 am

    In your auth request URL, are you setting response_type=token? That would cause the server to return an access token in the fragment. This is the Client-side flow described here: https://developers.google.com/accounts/docs/OAuth2UserAgent

    If you’re performing OAuth in a web server (and it sounds like you are), you should use the Web server flow described here: https://developers.google.com/accounts/docs/OAuth2WebServer — you specify response_type=code which will result in an authorization code that you can exchange for a refresh token and access token in a subsequent request.

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

Sidebar

Related Questions

I have an existing ASP.Net MVC project that is using entities / repositories in
I have a .NET 4.0 ASP.NET project which requires some threading work I've never
I have an ASP.Net MVC3 project that calls a WCF service to get data.
I have a legacy ASP.NET/VB.NET WebSite. There several App_Code modules/code files that use types
I have a project that requires the following. Four arrays will be declared in
I have a project that requires some configuration files. I want to keep the
I have recently just created Java project using Eclipse that requires 2 JAR files
$(.container).hover( function(){ $(.child-1).hide(0); $(.child-2).show(0); },function(){ $(.child-1).show(0); $(.child-2).hide(0); }); A project I have requires that
I have created a new VS2008 ASP.Net Web service project, with the default name
I'm working on an asp.net project that uses an in-house developed custom SessionStateProvider class.

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.