We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Add a method to generate automatically a contribution object with the shape:
"type": "Contribution", "agent": { "id": f"https://bbp.epfl.ch/nexus/v1/realms/bbp/users/{decoded['preferred_username']}", "type": ["Agent", "Person"], "givenName": decoded["given_name"], "familyName": decoded["family_name"], "name": decoded["name"], "email": decoded["email"] } })
where decoded is the Nexus decoded token: decoded = jwt.decode(TOKEN, "secret", audience="https://slack.com", options={"verify_signature": False})
decoded
decoded = jwt.decode(TOKEN, "secret", audience="https://slack.com", options={"verify_signature": False})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Add a method to generate automatically a contribution object with the shape:
where
decoded
is the Nexus decoded token:decoded = jwt.decode(TOKEN, "secret", audience="https://slack.com", options={"verify_signature": False})
The text was updated successfully, but these errors were encountered: