Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRITICAL: additional requirements added for GitHub App it seems #9

Closed
consideRatio opened this issue Mar 18, 2022 · 0 comments · Fixed by #12
Closed

CRITICAL: additional requirements added for GitHub App it seems #9

consideRatio opened this issue Mar 18, 2022 · 0 comments · Fixed by #12

Comments

@consideRatio
Copy link
Member

consideRatio commented Mar 18, 2022

Traceback (most recent call last):
  File "/home/erik/miniforge3/bin/github-app-user-auth", line 33, in <module>
    sys.exit(load_entry_point('github-app-user-auth', 'console_scripts', 'github-app-user-auth')())
  File "/home/erik/dev/contrib/yuvipanda/github-app-user-auth/github_app_user_auth/auth.py", line 75, in main
    access_token, expires_in = do_authenticate_device_flow(args.client_id)
  File "/home/erik/dev/contrib/yuvipanda/github-app-user-auth/github_app_user_auth/auth.py", line 27, in do_authenticate_device_flow
    f'Go to {verification_resp["verification_uri"]} and enter the code: {verification_resp["user_code"]}'
KeyError: 'verification_uri'

https://github.com/yuvipanda/github-app-user-auth/blob/f480c0fd708e5b6be7f8d456ad660c8b32e3a33e/github_app_user_auth/auth.py#L18-L26

The error stems from the response now is:

{
    'error': 'device_flow_disabled',
    'error_description': 'Device Flow must be explicitly enabled for this App',
    'error_uri': 'https: //docs.github.com'
}

The resolution is to enable a checkbox for the registered GitHub app under general settings.

image

For me, that meant going to https://github.com/settings/apps/hub-jupytearth-org-github-integ. I've verified this started working again after allowing Device flow again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant