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

BUG - Github OAuth Connection Failure #470

Closed
Flooflez opened this issue Feb 2, 2024 · 5 comments
Closed

BUG - Github OAuth Connection Failure #470

Flooflez opened this issue Feb 2, 2024 · 5 comments

Comments

@Flooflez
Copy link

Flooflez commented Feb 2, 2024

Describe the bug
Attempting to link Github account to student anubis account yields an "Unable to set username" error message, despite successfully connecting with the OAuth App (wabscale). Subsequent attempts with the same Github account result in the same error message, but with no redirect to Github to sign in or connect to wabscale.

To Reproduce
Steps to reproduce the behavior:

  1. Go to profile
  2. Click LINK ACCOUNT WITH GITHUB button
  3. Enter Github account information
  4. Click Authorize wabscale
  5. Receive Error

Screenshots
OAuth App is successfully given access.
image

Error appears as follows.
image

Desktop (please complete the following information):

  • OS: macOs Big Sur, Windows 11
  • Browser Firefox, Microsoft Edge

Additional context
Might be related to #469

Web console yields the following errors:

Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'attribution-reporting'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'run-ad-auction'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'join-ad-interest-group'.
Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'browsing-topics'. 

Error is raised in the auth.py script

Have tried different browsers, OS, and Github accounts.

Copy link

github-actions bot commented Feb 2, 2024

Thank you for submitting an issue to Anubis! Please make sure that your issue is consistent with our contribution guidelines.

@wabscale
Copy link
Collaborator

wabscale commented Feb 2, 2024

This would happen for users that didnt have a public email address on github. I pushed something to fix:

fdb46f4

@wabscale wabscale closed this as completed Feb 2, 2024
@GeJamesJin
Copy link

Hi @wabscale, @Flooflez's issue with "unable to set username" doesn't seem to be fixed for me. I am following exactly the same process of linking a Github account to Anubis, and I have been getting the identical error on Anubis's side.

Also, I have made my email address on Github public, which doesn't resolve the issue unfortunately.
image
image

@wabscale
Copy link
Collaborator

wabscale commented Feb 6, 2024

@GeJamesJin This is because of a different field for you being private on your github profile. I have updated things to handle it correctly:

abac58c

You can try again.

@GeJamesJin
Copy link

Hi @wabscale, I was able to successfully link my profile to Anubis, thanks for the prompt fix.

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

No branches or pull requests

3 participants