feat: correct the jans_assets scopes names by duttarnab · Pull Request #13025 · JanssenProject/jans (original) (raw)
📜 Review details
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
📥 Commits
Reviewing files that changed from the base of the PR and between a2701ae and 8abdaae.
📒 Files selected for processing (1)
jans-linux-setup/jans_setup/templates/jans-auth/role-scope-mappings.json🧰 Additional context used 🧠 Learnings (4) 📓 Common learnings
Learnt from: pujavs
Repo: JanssenProject/jans PR: 12736
File: jans-config-api/plugins/jans-link-plugin/src/main/java/io/jans/configapi/plugin/link/util/Constants.java:16-17
Timestamp: 2025-12-22T15:34:36.425Z
Learning: In the Jans project's config-api component, there is an intentional shift in OAuth scope URL naming convention to exclude the "jans-" prefix from scope identifiers. Scope URLs like `https://jans.io/oauth/config/link.admin` (without "jans-link") are preferred over `https://jans.io/oauth/config/jans-link.admin`. This is part of a deliberate renaming effort to exclude the project name from scope names.
Learnt from: pujavs
Repo: JanssenProject/jans PR: 12736
File: jans-config-api/profiles/local/test.properties:2-2
Timestamp: 2025-12-24T06:57:01.978Z
Learning: In jans-config-api test configuration files (like test.properties), the scopes `https://jans.io/auth/ssa.admin`, `https://jans.io/auth/ssa.portal`, and `https://jans.io/auth/ssa.developer` are required for test cases to execute successfully, even though these scopes are managed by the jans-auth component. Test configurations can include scopes from other components when needed for integration testing.
📚 Learning: 2025-12-22T15:34:36.425Z
Learnt from: pujavs
Repo: JanssenProject/jans PR: 12736
File: jans-config-api/plugins/jans-link-plugin/src/main/java/io/jans/configapi/plugin/link/util/Constants.java:16-17
Timestamp: 2025-12-22T15:34:36.425Z
Learning: In the Jans project's config-api component, there is an intentional shift in OAuth scope URL naming convention to exclude the "jans-" prefix from scope identifiers. Scope URLs like `https://jans.io/oauth/config/link.admin` (without "jans-link") are preferred over `https://jans.io/oauth/config/jans-link.admin`. This is part of a deliberate renaming effort to exclude the project name from scope names.
Applied to files:
jans-linux-setup/jans_setup/templates/jans-auth/role-scope-mappings.json📚 Learning: 2025-12-24T06:57:01.978Z
Learnt from: pujavs
Repo: JanssenProject/jans PR: 12736
File: jans-config-api/profiles/local/test.properties:2-2
Timestamp: 2025-12-24T06:57:01.978Z
Learning: In jans-config-api test configuration files (like test.properties), the scopes `https://jans.io/auth/ssa.admin`, `https://jans.io/auth/ssa.portal`, and `https://jans.io/auth/ssa.developer` are required for test cases to execute successfully, even though these scopes are managed by the jans-auth component. Test configurations can include scopes from other components when needed for integration testing.
Applied to files:
jans-linux-setup/jans_setup/templates/jans-auth/role-scope-mappings.json📚 Learning: 2025-12-18T12:50:04.709Z
Learnt from: pujavs
Repo: JanssenProject/jans PR: 12736
File: jans-config-api/docs/jans-config-api-swagger.yaml:0-0
Timestamp: 2025-12-18T12:50:04.709Z
Learning: In the Jans project's jans-config-api component, the scope `https://jans.io/auth/ssa.admin` is specified by the jans-auth component for SSA (Software Statement Assertion) endpoints and is out of scope for the Config API.
Applied to files:
jans-linux-setup/jans_setup/templates/jans-auth/role-scope-mappings.json⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)- GitHub Check: build-with-disabled-tests (jans-bom, true)
- GitHub Check: run-tests (PGSQL)
- GitHub Check: run-tests (MYSQL)
- GitHub Check: label PR
- GitHub Check: check_pr_for_docs
- GitHub Check: sonar scan (jans-cli-tui)
- GitHub Check: sonar scan (jans-orm)
- GitHub Check: sonar scan (jans-linux-setup)
- GitHub Check: sonar scan (jans-auth-server)
- GitHub Check: check_pr_for_docs 🔇 Additional comments (1)
jans-linux-setup/jans_setup/templates/jans-auth/role-scope-mappings.json (1)
1092-1094: Role-permission mapping updated consistently.The
rolePermissionMappingarray correctly references the renamed permissions, maintaining consistency with the permission definitions above.
✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.