Skip to content

fix: read allowed from OBP-API's Get My Role in the monitoring role check - #188

Open
hongwei1 wants to merge 1 commit into
OpenBankProject:developfrom
hongwei1:fix/role-check-allowed
Open

hongwei1 wants to merge 1 commit into
OpenBankProject:developfrom
hongwei1:fix/role-check-allowed

Conversation

@hongwei1

Copy link
Copy Markdown
Collaborator

The role check behind /api/monitoring/* now reads the boolean allowed that OBP-API v7.0.0 returns from GET /banks/SYS/my/roles/ROLE_NAME, so a token whose User holds the Role, or whose Platform App Consumer holds it as a Scope, is let in. A response that has no allowed is still read through allowed_for_auth_modes, so an older OBP-API keeps working.

server/test/monitoring.test.ts answers with allowed and covers the older field. Not covered yet: the other OBP-API calls the Explorer makes to v7.0.0 endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant