Questions tagged [github-oauth]

46 questions
1
vote
1 answer

How to instantiate Octokit for user-as-a-server oAuth?

I want my GitHub app to perform actions on behalf of a user, like creating an issue. I am authenticating my user this way: const { createOAuthAppAuth } = require('@octokit/auth-oauth-app'); const auth = createOAuthAppAuth({ clientType:…
Sydney C.
  • 950
  • 10
  • 21
1
vote
0 answers

GitHub oauth doesn't fetch email with scope set to "user:email,read:user"

I was following this tutorial to implement authorization with github using Spring. Here is oauth2 configuration: github: clientId: ${GITHUB_CLIENT_ID} clientSecret: ${GITHUB_CLIENT_SECRET} redirectUri:…
Danil
  • 11
  • 2
  • 3
1
vote
1 answer

Trouble getting access token when using github OAuth2

I am trying to follow Users are redirected back to your site by GitHub step I was able to get an authorization code, but I am having trouble exchanging that for an access token. This is the call with the auth…
developer747
  • 15,419
  • 26
  • 93
  • 147
1
vote
1 answer

While using passport-github, profile.emails is null despite user:email scope

I'm trying to get the private email of github user via passport-github. So this is my code with scope: "user:email": import passport from "passport"; import GithubStrategy from "passport-github"; passport.use( new…
1
vote
0 answers

How to list the scopes granted to a specific application

A React application has a standard OAuth flow that grants access to Github with no scope. The user can go through another OAuth flow to grant repo access to the application. How can the application tell if the user has granted the repo scope or…
Denise Mauldin
  • 5,397
  • 5
  • 32
  • 51
1
vote
0 answers

I can't set multiple github oauth callback urls?

Now I'm making a Rails app and add github login. I think I want to try 2 github oauth callback urls for localhost and production environment, but there is just one form here. github oauth I read below article, but I couldn't solve. How I should do…
tegnike
  • 11
  • 1
1
vote
0 answers

cannot extract user data from response object React GitHub Login

I am using React component for OAuth GitHub login in my web site. Here is the npm link : https://www.npmjs.com/package/github-login But I am unable to extract the user details from that response object. When I console log the response this is the…
Shihara Dilshan
  • 193
  • 2
  • 14
0
votes
1 answer

Next-auth Receiving 404 after login attempt in Next-auth development env

Next-auth Receiving 404 after login attempt in Next-auth development env. i have next-13.4.9 and next-auth-4.22.1, i tried many ways but didnt helped. not sure whats the problem.
0
votes
1 answer

How can I add GitHub as an identity provider for AWS Cognito with Terraform?

I am using AWS Cognito to build out the authentication layer for my React app, and I'm trying to go for the quickest win possible. I'm using Terraform to build my backend, and have successfully got Google working as an identity provider. Now I want…
Tom
  • 1,275
  • 1
  • 18
  • 51
0
votes
0 answers

Not able to see the Button "Sign in with GitHub" in JupyterHub login page even after Configuring with GitHub OAuthenticator

We should see the GitHub login button in JupyterHub Login page GitHub Login button in JupyterHub Login Page But getting the JupyterHub Login page instead of GitHub Login Button Even After Configuring with GitHub OAuth JupyterHub login…
0
votes
1 answer

Python Flask. Authlib. How to logout or revoke token? GitHub OAuth

I use authlib for oauth2 in my application. And after logging in via oauth(GitHub), I want to log out. How can I do this? Do I need to revoke the token? Or do I need to clear my flask session somehow? oauth = OAuth(app) oauth.register( …
0
votes
0 answers

Is it possible to add request header to OIDC IDP provider using AWS Cognito?

I am trying to add social login for Github with AWS Cognito User Pool. I was successfully able to complete the authorize flow. However, when trying to fetch the token information from "https:///oauth2/token" it says that Response from IdP token…
0
votes
0 answers

OAuth2 Via GitHub Api - Refresh Token missing

I am using .NET 6 - AddOAuth() method to configure the authorization code flow. After the authentication via token endpoint, I received access token but refresh token is missing. As per Github's article, to enable refresh token we have to use…
subi_speedrunner
  • 901
  • 3
  • 9
  • 17
0
votes
0 answers

Django 4.1, social auth with GIT, error: http://127.0.0.1:8000/complete/github/?error=redirect_uri_mismatch&error_description=The+redirect_uri+MUST

I have been asking everywhere I could, I saw some answers here that mentioned adding a host entry for 127.0.0.1 but since my dev serve is on an Ubuntu VM locally I am not sure how that would work. Anyways, I actually copied the URI from GitHub and…
Steve
  • 1,028
  • 7
  • 25
  • 42
0
votes
1 answer

How to use passport.js github strategy to get emails of users instead of null

I successfully got the user details but the email field is null.After some time got to know that I need to fetch it from "https://api.github.com/user/emails".I used axios and also provided accesstoken as header but it is giving me…