Skip to content

Migrate Admin Console to the new scope_type values (course-v1/lib) #535

Closed

Description

@BryanttV

Description

GET /api/authz/v1/scopes/ now expects the scope_type query parameter values course-v1 and lib, replacing the previous course and library. To avoid a breaking change, the API still accepts the old values as deprecated aliases. The Admin Console must stop sending the old values so those aliases can be removed from the API.

Current Behavior

The Admin Console calls GET /api/authz/v1/scopes/ with scope_type=course or scope_type=library. These requests only work because of the deprecated aliases kept in the API.

Expected Behavior

The Admin Console sends scope_type=course-v1 or scope_type=lib on every request to GET /api/authz/v1/scopes/, and no longer relies on the deprecated aliases.

Acceptance Criteria

  • No call to GET /api/authz/v1/scopes/ in the Admin Console uses scope_type=course or scope_type=library.
  • The Admin Console uses course-v1 and lib wherever it builds the scope_type parameter.
  • Any Admin Console code, constants, or mocks that reference the old values are updated.
  • Tests are updated to use the new values.
  • The change is released so the API aliases can be removed (see the related issue).

Notes or Additional Context

GET /api/authz/v1/roles/ does not accept the aliases and uses the scope_types parameter with course-v1 and lib. Check that the Admin Console already uses those values there.

Dependencies

Blocks the removal of the deprecated course/library aliases in openedx-authz.

Activity

  1. moved this to Ready for Development in RBAC AuthZ Boardon Oct 15, 2026
  2. added
    willow
    on Oct 15, 2026
  3. moved this from Ready for Development to In Progress in RBAC AuthZ Boardon Oct 29, 2026
  4. moved this from In Progress to Ready for Review in RBAC AuthZ Boardon Oct 29, 2026
  5. moved this from Ready for Review to In Review in RBAC AuthZ Boardon Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions