Questions tagged [github-oauth]

46 questions
14
votes
2 answers

Github api returns bad credentials even with oauth token

update: even such a request get bad credential ==> curl -H "Authorization: token [token]" https://api.github.com =============== I made a request for GitHub OAuth like this in my iOS app: URL: https://github.com/login/oauth/authorize, params:…
aakpro
  • 1,538
  • 2
  • 19
  • 53
6
votes
2 answers

How should I store OAuth with my own authentication system?

I have an existing signup/login system: a user enters an email and password. The password is hashed. I store it in a database. When a user logs in, they entire their email and password. The password is hashed, and I look up the email in the database…
Ayyli
  • 95
  • 3
  • 8
4
votes
0 answers

How to authenticate Octokit using Github Oauth access_token

I'm building a GitHub Oauth app, and I'm trying to authenticate Octokit using an Oauth access_token that I'm getting when the user clicks sign in with Github. The access_token I'm using has access to the repo scope, but when I try to authenticate…
Ganning Xu
  • 263
  • 4
  • 13
4
votes
1 answer

How to solve CORS error when redirecting to github omniauth route?

I'm trying to build a simple app that is just using a GitHub login for authentication for now. I am using Rails v5.2.3 for the backend, and React for the frontend. I currently have a button in my Root Component that sends an ajax request to my…
4
votes
0 answers

Github Oauth with subdomain

From Github official documentation, these are the good/bad callback urls: CALLBACK: http://example.com/path GOOD: http://example.com/path GOOD: http://example.com/path/subdir/other BAD: http://example.com/bar BAD: http://example.com/ BAD: …
4m1nh4j1
  • 4,289
  • 16
  • 62
  • 104
3
votes
1 answer

How to implement social login with GitHub when user email is private?

How to implement social login with GitHub so that I am able to get private emails of user for authentication if users email is set to private? Currently I am able to process user login when user email is public. I know it has to be done somehow…
Egon
  • 410
  • 3
  • 8
  • 18
3
votes
3 answers

OAuth 2.0 flow for user groups / organizations

OAuth 2.0 protocol provides permissions delegation of a user so that third-party apps can operate on its behalf. A typical way this is done on the OAuth flow is requesting a user consent to either approve or deny access for the app (Okta example).…
yyunikov
  • 5,719
  • 2
  • 43
  • 78
2
votes
0 answers

Accessing github API scopes from Google Apps Script

I'm trying to use the apps-script-oauth2 library to access the GitHub API in a Google Apps Script. I'm creating the service like this: function getGithubService(client_id, client_secret) { return OAuth2.createService("GitHub") …
Tom
  • 7,269
  • 1
  • 42
  • 69
2
votes
1 answer

Social Network Login Failure on Django, Callback url mismatched

I have problem for attaching social login. I have tried google login on local, it was fine. But when I try for deploy, Non-public domain is not supported. I`m not sure *.link is non-public domain, but it did not work for some reason. So I am trying…
2
votes
0 answers

How do I implement Github OAuth2 login with Spring Boot using only REST api?

I am trying to implement Signup with Github in a sample project, where front-end code is made up of ReactJS and Backend API is made up of Spring Boot. I am not using Server Template Engines such as ThymeLeaf or Mustache, but only creating RESTful…
1
vote
1 answer

Is there a way to get binary files (contents) of Github private repositories of GitHub OAuth logged in users through Github API?

I've been looking for a way to get binary files (contents) of Github private repositories and organization repositories through GitHub API, in order to build those files and deploy them for users. (in order to create a minimized version of clone…
Taewan
  • 23
  • 3
1
vote
1 answer

Verify if token not expired Github Oauth1

Hey i want know if github have a endpoint to verify if a access_token have expired ? I have tried this but i have a 404 error
1
vote
1 answer

Should I create a GitHub App or GitHub OAuth App?

I am trying to create a website that will allow users to authorize their GitHub account and it will then allow the user to click a create button. Which automatically creates a new repo with some files. Now I am confused about should I make a GitHub…
suman
  • 57
  • 8
1
vote
0 answers

AuthCanceled at /oauth/complete/github/ (Authentication process canceled)

I'm working with a Django app and when I try to login with Github, this error occurs: AuthCanceled at /oauth/complete/github/ Authentication process canceled Request Method: GET Request URL: …
Palinuro
  • 184
  • 1
  • 1
  • 15
1
vote
1 answer

how to delete github oauth accessToken when user logout?

I'm having trouble with deleting github accessToken when user try to logout from my react app. I was trying to follow the instructions in github delete accesstoken documents, but I get an 404 bad request. I was trying to handle github logout by…
juls
  • 65
  • 5
1
2 3 4