biocompute-objects / portal_userdb

1 stars 1 forks source link

User Account Check #277

Closed HadleyKing closed 9 months ago

HadleyKing commented 9 months ago

I currently call https://biocomputeobject.org/api/objects/drafts/create/ with the ORCID id_token and a blank body to check if the user has a valid BioCompute Object account. I get either 403 (no account) or 500 (has an account but I sent a malformed request). Instead of triggering 500s it'd be helpful to have another endpoint for checking this, I couldn't find another which worked.

HadleyKing commented 9 months ago

490e771

You can call https://biocomputeobject.org/users/orcid/user_info/ with the ORCID JWT and this will return a user object.