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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T05:03:20+00:00 2026-05-21T05:03:20+00:00

All Oauth providers I’ve authenticated with will redirect you to a page that says

  • 0

All Oauth providers I’ve authenticated with will redirect you to a page that says something like “Thanks, redirecting you…” and uses javascript to redirect you to the supplied redirect_uri.
I would have thought it was simpler and faster to return an HTTP redirect. Why is it always done that way?

  • 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-21T05:03:21+00:00Added an answer on May 21, 2026 at 5:03 am

    302’s Location header according to HTTP 1.1 looks like this:

    Location       = "Location" ":" absoluteURI
    

    absoluteURI according to URI Generic Syntax does not include fragment identifier. The one with the fragment is called URI-reference:

    URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]   
    

    The detail is described in @levik’s question: URL Fragment and 302 redirects. I am now learning it the hard way, but the gist is that 302 with fragment doesn’t seems to work with IE8.

    Using Javascript probably is more reliable way because you’re suppose to pass the access tokens via fragment.

    Edit:
    I now know what happened with IE8. IE does respect the fragment identifier in Location header, but it ignores the one from source URI. My redirect URL was to http://example.com/oauth, which I had an automatic redirect to https, https://example.com/oauth.

    1. OAuth redirects to http://example.com/oauth#access_token=foo.
    2. My server redirects to https://example.com/oauth.

    Between step 1 and 2, IE8 threw away the fragment identifier, while some of the other browsers redirected to https://example.com/oauth#access_token=foo.

    So the real answer is 302 is ok, as long as you don’t use it more than once on the URL.

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

Sidebar

Related Questions

Consider the following distributed system that uses OAuth 2.0 for authorization and OpenID 2.0
I have an iOS which uses OAuth and OAuth2 providers (Facebook, google, twitter, etc)
I am handling the authentication using the server side oauth flow. All that is
I'm having login through several oauth providers on my site. The problem is that
All, If I run a query like the following: $qry = Select wrong_column from
All I want to do is return the index of the i that is
I'm trying to make an OAuth 2.0 Provider and an Android application that is
I am trying to remove Oauth twitter (we are keeping facebook). I've removed all
I had at first misinterpreted the timestamp implementation of OAuth into thinking that it
I've written an oauth provider that is meant to work with several of my

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.