Resources Management Frontend Development
The Resources Portal, https://auth-resources.web.cern.ch, is the frontend for subscribing to and managing computing resources managed by the Authorization Service.
Extending the Resources Portal
The Resources Portal code must be extended to include your computing resource.
In particular:
- Adding a definition for your resource
- Adding a form for resource creation
Authorization
You will need to create an application in the Applications Portal and define roles that determine which users are eligible and which are already subscribed.
The following snippet shows the configuration of eligible and subscribed roles in the
definitions.js
file.
{
title: "DB on Demand",
description: "Database on Demand service",
resourceType: "DBOD",
// Users with one of these roles are eligible to subscribe
eligibleRoles: ["dbod-api-allowed-users"],
// Users with this role are already subscribed
subscribedRole: "dbod-api-users",
// When clicking "subscribe" users can be prompted to join a group. This should be
// linked to the role chosen for subscribedRole in the application portal
groupsForSubscription: ["dbondemand-users"],
// The application ID must match the application you create in the application portal
// where you define the roles
applicationId: "dbod-resources-portal",
}