Request role using Switchboard
Before continuing with this section, please ensure that an EWC Account has been prepared and that it has enough EWT to fund the on-chain transactions.
To acquire the application-level enterprise user roles, simply visit the Switchboard web dApp and follow below steps:
Connect your EWC Account using Metamask
Confirm the sign-in request
Confirm the signature request
The screen redirects to the dashboard where the DID of the enterprise user is displayed as highlighted in the red box
Search for the application namespace which contains the target role in the search bar provided. The search result will be displayed on a list. Click on the result item to view the application details including the list of available roles. ℹ️ 💁 For this example, let's use the EW Digital Spine Message Broker application namespace (
dsmb.apps.ddhub.energyweb.auth.ewc
).The screen displays the application details including the list of available roles. Click on the "Enrol" icon as highlighted in the second screenshot below. ℹ️ 💁 For this example, the EW Digital Spine Message Broker application has two available roles:
user
andtopiccreator
The enrolment screen will be displayed. Input the target values to the enrolment fields provided. Then, click "Submit Request" button.
Confirm the requested transactions
After successful confirmation of the enrolment request transactions, the screen redirects to "My Enrolments" page which shows the list of role requests together with their respective status. ℹ️ 💁 Newly requested roles will have the
Pending
status. This means that the role request is waiting for the approval from the verifiable credentials issuers who are typically the administrators of the application namespace.Once the status has changed to
Approved
, the role is now ready to be published as a VC in the DID Document of the enterprise user. Only the published VC is honoured in the Digital Spine ecosystem. To publish, simply click on the "Publish" icon as shown in the illustration below.Confirm the action
Confirm the transactions prompted in your wallet account
Once the transactions are confirmed, the "Publish" icon will disappear. This means that the VC has been published successfully.
Last updated