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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:28:05+00:00 2026-06-18T11:28:05+00:00

I am trying to use the Github Oauth API for a specific purpose: Github

  • 0

I am trying to use the Github Oauth API for a specific purpose:

Github OAuth API Specs

Here is what I did:

I created an “Application” in my Github account, and added an application URL say http://example.com/ and a Callback URL http://example.com//. Github, in return, generated a client_id and client_secret.

I used the client_id to generate an authorization url:

https://github.com/login/oauth/authorize?client_id=<client_id>&scope=repo&redirect_url=http://example.com/auth/

When I paste this URL in the browser. Github asks me sign-in. Once I sign in with my credentials, it asks me to authorize the application, which I do. However, it returns to this url with a temporary code:

 http://example.com/?code=<temporary code>

, instead of the redirect_url that I had provided:

   http://example.com/auth/?code=<temporary code>

In general, I want the flexibility to construct my own redirect_url, where I can add few parameters to the redirect_url so that I can distinguish between different users.

I’v tried different combinations without any success. I’ve even tried to encode the redirect_url parameter but it does not work.

  • 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-18T11:28:06+00:00Added an answer on June 18, 2026 at 11:28 am

    The name of the parameter is not redirect_url, it is redirect_uri (URL -> URI).

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

Sidebar

Related Questions

I'm trying to use the php shopify api library created by cmcdonaldca at https://github.com/cmcdonaldca/ohShopify.php
I am trying to make use of github's commit hook url. I have added
I'm trying to use the JSONKIt found here https://github.com/johnezang/JSONKit to parse through a JSON
So I am trying to use this font http://fortawesome.github.com/Font-Awesome/ . I've added the font
i am trying to use the kal calendar from following url http://github.com/briancollins/Kal . I
I'm trying to use this code which is an example taken from here https://gist.github.com/2383248
I'm trying to use the ConnectionKit Framework https://github.com/karelia/ConnectionKit with my application but can't figure
I'm trying to use this article: https://github.com/Licensario/licensario-rest-protocol/blob/master/rest-api.md#feature-usage so I wrote: ## get request feature_allocation_req
I'm trying to use GitHub's API to retrieve the blob of a file. I
I'm trying to use iCarousel (https://github.com/nicklockwood/iCarousel) and have added iCarousel.h & iCarousel.m to 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.