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

Support optional scopes #51

Open
NickolausDS opened this issue Oct 30, 2020 · 0 comments
Open

Support optional scopes #51

NickolausDS opened this issue Oct 30, 2020 · 0 comments

Comments

@NickolausDS
Copy link
Collaborator

It should be possible to request optional scopes from Globus. For example:

from fair_research_login import NativeClient
client = NativeClient(client_id='7414f0b4-7d05-4bb6-bb00-076fa3f17cf5')
client.login(requested_scopes='openid profile *email')

This works the first time, however there is a bug where *email is detected to be a separate scope and causes the flow to restart upon re-running.

This is almost certainly a problem here https://github.com/fair-research/native-login/blob/develop/fair_research_login/token_storage/storage_tools.py#L59 where *email doesn't match and a ScopesMismtach exception is raised

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

1 participant