-
Notifications
You must be signed in to change notification settings - Fork 0
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
Allow multiple scopes #7
Comments
I believe this is just a matter of specifying which scopes we are asking the user to authorize in the initial ORCID redirect (URL params). So we'd need to prompt the user for that choice on our end. |
Some more information about managing scopes.Here's the scenario:
Answer (from ORCID support):
Also, each scope is distinct; none includes the others implicitly:
Considerations for our integration
|
Further enhancement: implement check to prevent users for authorizing the same scopes they have already authorized, provided their tokens are still valid. (Recommended in ORCID's best practices for integration.) Oops, duplicate of #4. |
Currently the "UserId" field in the database is not unique, so storing multiple tokens for each user would not require a change to the schema. We are also storing datetime stamps, so we would be able to retrieve the most recent token associated with a given scope. However, the scope field is currently stored in the form it's received, i.e. |
Determine if it's possible to present a user with multiple scopes and all them to self select the permission level granted to GW on their ORCID profile.
The text was updated successfully, but these errors were encountered: