Skip to content
New issue

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

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

Already on GitHub? # to your account

500 error when logging in with ORCID #534

Open
craig-willis opened this issue Mar 15, 2022 · 4 comments · Fixed by #535
Open

500 error when logging in with ORCID #534

craig-willis opened this issue Mar 15, 2022 · 4 comments · Fixed by #535

Comments

@craig-willis
Copy link

When I try to login via ORCID on prod, test, and dev I get a 500 error. Oddly, on dashboard.stage.wholetale.org I don't get the 500. I also don't see it when logging in via globus.org directly.

To Repeat

Screen Shot 2022-03-15 at 11 18 44 AM

Likely related to #459

@Xarthisius
Copy link
Collaborator

Xarthisius commented Mar 15, 2022

It happens with

Globus.addScopes([DEFAULT_DERIVA_SCOPE])

and ftr:

DEFAULT_DERIVA_SCOPE = \
"https://auth.globus.org/scopes/a77ee64a-fb7f-11e5-810e-8c705ad34f60/deriva_all"

Commenting this line out let's me log in with Globus + ORCID. If I bring it back I get the reported 500.

@craig-willis
Copy link
Author

This is happening again for me on local.

As before, commenting out Globus.addScopes for DERIVA resolves it, but this time there are no duplicate scopes:

In [2]: Globus._AUTH_SCOPES
Out[2]:
['urn:globus:auth:scope:auth.globus.org:view_identities',
 'openid',
 'profile',
 'email',
 'urn:globus:auth:scope:transfer.api.globus.org:all',
 'https://auth.globus.org/scopes/a77ee64a-fb7f-11e5-810e-8c705ad34f60/deriva_all']

@Xarthisius
Copy link
Collaborator

I don't think we need 'urn:globus:auth:scope:auth.globus.org:view_identities', nor openid and profile. We could try dropping them instead of deriva.

@craig-willis
Copy link
Author

Encountered this again while testing v1.2rc1 on staging:

https://girder.stage.wholetale.org/api/v1/integration/zenodo?doi=10.5072%2Fzenodo.1021503&resource_server=sandbox.zenodo.org

Logging in via ORCID results in 500 error again because the state is too large (2031 characters). The request does include the full URL, but this indicates that any integration has the potential to fail because of the limit.

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

Successfully merging a pull request may close this issue.

2 participants