-
Notifications
You must be signed in to change notification settings - Fork 81
docs(sharing): badges and verifiable credentials documentation rework #2968
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
Open
GlugovGrGlib
wants to merge
14
commits into
openedx:master
Choose a base branch
from
GlugovGrGlib:g-glugovskiy/badges-documentation-corrections
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
4588cad
docs: update readme and fix typos in credentials sharing docs
GlugovGrGlib 8cdacae
docs(vc): move credentials sharing docs under the same parent dir
GlugovGrGlib 8e0f651
docs: major docs refresh and improvement
GlugovGrGlib 44c3e9a
docs: finalize c4 diagrams and text enhancements
GlugovGrGlib 73e2c04
docs: major update and docs polishing for credentials sharing
GlugovGrGlib ce6f319
docs: update diagrams and screenshots for badges and credentials sharing
GlugovGrGlib d1ee8f8
docs: improve badges documentation with provider configs and quickstart
GlugovGrGlib 279b33e
docs: revise verifiable credentials documentation and add managing guide
GlugovGrGlib a6b2510
docs: update sharing section index with revised structure
GlugovGrGlib 6a7d269
docs: enhance host in template urls wording
GlugovGrGlib 0f70c59
docs: correct wording based on the feedback after refactoring
GlugovGrGlib 836d1dd
docs: small sentance adjustment
GlugovGrGlib 99b33f7
docs: additional corrections and elaboration
GlugovGrGlib 82c7676
docs: fix broken link
GlugovGrGlib File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| flowchart TD | ||
| A[Incoming event] --> B{Event type configured for badges?} | ||
| B -- No --> Z1[Ignore event] | ||
| B -- Yes --> C{UserData present?} | ||
| C -- No --> Z2[Drop event] | ||
| C -- Yes --> D[Find or create learner in Credentials] | ||
|
|
||
| D --> E[Find active badge requirements for this event type] | ||
| E --> F{Requirement rules match event payload?} | ||
| F -- No --> Z3[Skip requirement] | ||
| F -- Yes --> G[Create or update Badge Progress] | ||
| G --> H[Mark requirement fulfilled] | ||
|
|
||
| H --> I{Are all requirements fulfilled?} | ||
| I -- No --> Z4[Wait for more matching events] | ||
| I -- Yes --> J[Create internal badge record] | ||
| J --> K[Emit badge awarded signal] | ||
| K --> L[Issue badge through provider API] | ||
| L --> M[Update external badge identifier and state] | ||
|
|
||
| D --> P[Find active penalties for this event type] | ||
| P --> Q{Penalty rules match event payload?} | ||
| Q -- No --> Z5[No penalty action] | ||
| Q -- Yes --> R[Reset linked requirement progress] | ||
| R --> S[Update internal badge state] | ||
| S --> T[Update provider badge state] | ||
| T --> U[Credly: revoked<br/>Accredible: expired] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,117 @@ | ||
| /* | ||
| * C4 model for the Credential Sharing feature in Open edX. | ||
| * Covers Digital Badges and Verifiable Credentials. | ||
| * | ||
| * Written in Structurizr DSL (https://structurizr.org/). | ||
| */ | ||
| workspace "Credential Sharing" { | ||
|
|
||
| model { | ||
| siteAdmin = person "Site Admin" "Configures badge templates and VC issuing" | ||
| learner = person "Learner" "Earns credentials through learning activities" | ||
| verifier = person "Verifier" "Employer or institution that verifies learner credentials" | ||
|
|
||
| digitalWallet = softwareSystem "Digital Wallet" "Learner Credential Wallet or compatible storage" | ||
| digitalBadgePlatform = softwareSystem "Digital Badge Platform" "Credly, Accredible" "Existing System" | ||
|
|
||
| openedX = softwareSystem "Open edX" { | ||
| openedxPlatform = container "Open edX Platform" "LMS and course management" "Python/Django" | ||
| eventBus = container "Event Bus" "Redis Streams or Kafka" "" "Queue" | ||
| credentialsService = container "Open edX Credentials" "Stores learner achievements, issues credentials" "Python/Django" { | ||
| credentialsCore = component "Credentials Core" "Manages course and program certificates" "Django" | ||
| digitalBadgesIssuer = component "Digital Badges Issuer" "Processes badge requirements, issues badges to external platforms" "Django" | ||
| verifiableCredentialsIssuer = component "Verifiable Credentials Issuer" "Issues W3C Verifiable Credentials, signs with didkit (Ed25519)" "Django" | ||
| vcIssuerMFE = component "Learner Record MFE" "UI for learners to request verifiable credentials" "React" | ||
| } | ||
| credentialsDB = container "MySQL" "Credentials database" "" "Database" | ||
| } | ||
|
|
||
| # --- Actors --- | ||
|
|
||
| siteAdmin -> credentialsCore "Configures badge templates and VC settings" "Admin panel" | ||
| learner -> openedxPlatform "Completes courses and assignments" | ||
| learner -> vcIssuerMFE "Requests verifiable credential" | ||
|
|
||
| # --- Event Bus flows --- | ||
|
|
||
| # LMS produces events consumed by Credentials | ||
| openedxPlatform -> eventBus "Publishes certificate and course passing status events" "openedx-events" | ||
| eventBus -> credentialsCore "Delivers certificate and course grades events" "openedx-events" | ||
| eventBus -> digitalBadgesIssuer "Delivers badge-related events" "learning-badges-lifecycle topic" | ||
|
|
||
| # Credentials produces events back to the bus | ||
| digitalBadgesIssuer -> eventBus "Publishes badges lifecycle events" "openedx-events" | ||
|
|
||
| # --- Internal flows --- | ||
|
|
||
| credentialsCore -> credentialsDB "Uses" "Django ORM" | ||
| digitalBadgesIssuer -> credentialsDB "Uses" "Django ORM" | ||
| verifiableCredentialsIssuer -> credentialsDB "Uses" "Django ORM" | ||
|
|
||
| # --- External integrations --- | ||
|
|
||
| # Badges | ||
| digitalBadgesIssuer -> digitalBadgePlatform "Issues and revokes badges" "REST API" | ||
|
|
||
| # Verifiable Credentials | ||
| vcIssuerMFE -> verifiableCredentialsIssuer "Initiates VC issuance" | ||
| verifiableCredentialsIssuer -> digitalWallet "Sends signed verifiable credential" | ||
| digitalWallet -> verifiableCredentialsIssuer "Sends issuance request" "HTTP" | ||
|
|
||
| # Verification | ||
| verifier -> verifiableCredentialsIssuer "Checks credential revocation status" "StatusList2021 API" | ||
| verifier -> digitalBadgePlatform "Checks badge revocation status" "" | ||
|
|
||
| } | ||
|
|
||
| views { | ||
| systemContext openedX "SystemContext" "High-level view of Credential Sharing" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| container openedX "Containers" "Open edX containers involved in credential sharing" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| component credentialsService "Components" "Credentials service internal components" { | ||
| include * | ||
| autoLayout lr | ||
| } | ||
|
|
||
| styles { | ||
| element "Person" { | ||
| color "#ffffff" | ||
| background "#0b3d91" | ||
| fontSize 22 | ||
| shape Person | ||
| } | ||
| element "Software System" { | ||
| background "#005a9c" | ||
| color "#ffffff" | ||
| } | ||
| element "Existing System" { | ||
| background "#4a4a4a" | ||
| color "#ffffff" | ||
| } | ||
| element "Container" { | ||
| background "#2b7bbb" | ||
| color "#ffffff" | ||
| } | ||
| element "Component" { | ||
| background "#dbeafe" | ||
| color "#111111" | ||
| } | ||
| element "Database" { | ||
| shape Cylinder | ||
| } | ||
| element "Queue" { | ||
| shape Pipe | ||
| } | ||
| } | ||
| } | ||
| configuration { | ||
| scope softwaresystem | ||
| } | ||
| } | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-41.3 KB
(66%)
docs/_static/images/badges/badges-admin-template-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-48.4 KB
(75%)
docs/_static/images/verifiable_credentials-issuance-lines.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[suggestion] these diagrams rely heavily on shades of blue, which may not be very accessible. Further, black on light blue probably doesn't pass accessible contrast ratios.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I updated the color palette to gray and black. The same is used for other similar diagrams across the credentials docs, e.g. https://github.com/openedx/credentials/blob/master/docs/_static/images/program_certificate_awarded.png