Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Add method to generate the contribution information from a token

Open
#313 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

No file or test is named. Start by locating the forge.from_json entry point and any existing token-handling APIs, then compare the generated object with the requested Contribution shape and decoded token fields. Done means the method automatically produces the specified agent data from a decoded Nexus token.

Written by the indexing model from the issue text.

Description

enhancement

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})

Dominant language
Python
Stars
52
Forks
21
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from BlueBrain/nexus-forge

All issues in BlueBrain/nexus-forge

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.