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

authentication: ORCID OAuth #39

Merged
merged 1 commit into from
Jul 22, 2019
Merged

authentication: ORCID OAuth #39

merged 1 commit into from
Jul 22, 2019

Conversation

sebdeleze
Copy link
Contributor

NEW OAuth authentication with ORCID api.

@sebdeleze
Copy link
Contributor Author

sebdeleze commented Jun 25, 2019

You can use this ORCID test account:

Username: sebastien.deleze@rero.ch
Password: WsX*J6*tWUXmzTVk.4uc

sonar/config.py Outdated
'sonar.ch',
'localhost',
'127.0.0.1',
'sonardev.test.rero.ch',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why? perhaps a small comment.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not mandatory, I removed it..

@@ -0,0 +1,31 @@
# -*- coding: utf-8 -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need an new extension?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I effectively don't need an extension. That's now removed

'full_name': 'Full Name',
},
},
'external_id': 'github-unique-identifier',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

github or orcid?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

corrected


:param orcid_id: ORCID identifier
:param token: Access token for querying API
:return: Dict of record or None
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be nice to have an idea of the form of the returned record.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I provided an example in the docstring, but not with the full structure, because it's quite long

@sebdeleze sebdeleze requested a review from jma July 11, 2019 13:17
NEW OAuth authentication with ORCID api.

Signed-off-by: Sébastien Délèze <sebastien.deleze@rero.ch>
@sebdeleze sebdeleze merged commit bb6cb6d into rero:master Jul 22, 2019
@sebdeleze sebdeleze deleted the sed-orcid-authentication branch July 22, 2019 13:27
@sebdeleze sebdeleze restored the sed-orcid-authentication branch July 22, 2019 13:29
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

Successfully merging this pull request may close these issues.

None yet

2 participants