bondy icon indicating copy to clipboard operation
bondy copied to clipboard

Expose all the Bondy Admin WAMP API Procedures via HTTP

Open aramallo opened this issue 2 years ago • 9 comments

At the moment not all the Admin WAMP API procedures are available via the Admin HTTP API.

Realm

  • [X] bondy.realm.createPOST /realms
  • [X] bondy.realm.getGET /realms/:realm_uri
  • [X] bondy.realm.updatePUT /realms/:realm_uri
  • [X] bondy.realm.listGET /realms
  • [X] bondy.realm.deleteDELETE /realms/:realm_uri
  • [X] bondy.realm.security.is_enabledGET /realms/:realm_uri/security_enabled
  • [X] bondy.realm.security.enablePUT /realms/:realm_uri/security_enabled
  • [X] bondy.realm.security.disableDELETE /realms/:realm_uri/security_enabled

User

  • [X] bondy.user.addPOST /realms/:realm_uri/users/
  • [X] bondy.user.deleteDELETE /realms/:realm_uri/users/:id
  • [X] bondy.user.getGET /realms/:realm_uri/users/:id
  • [X] bondy.user.updatePUT /realms/:realm_uri/users/:id/
  • [X] bondy.user.listGET /realms/:realm_uri/users/
  • [X] bondy.user.is_enabledGET /realms/:realm_uri/users/:id/enabled
  • [X] bondy.user.enablePUT /realms/:realm_uri/users/:id/enabled
  • [X] bondy.user.disableDELETE /realms/:realm_uri/users/:id/enabled
  • [X] bondy.user.change_password -> POST /realms/:realm_uri/users/:id/change_password
  • [X] bondy.user.add_aliasPUT /realms/:realm_uri/users/:id/aliases/:alias
  • [X] bondy.user.remove_aliasDELETE /realms/:realm_uri/users/:id/aliases/:alias
  • [X] bondy.user.add_groupPUT /realms/:realm_uri/users/:id/groups/:group
  • [X] bondy.user.remove_groupDELETE /realms/:realm_uri/users/:id/groups/:group
  • [ ] bondy.user.add_groups
  • [ ] bondy.user.remove_groups

Group

  • [X] bondy.group.addPOST /realms/:realm_uri/gropus
  • [ ] bondy.group.add_group
  • [ ] bondy.group.add_groups
  • [X] bondy.group.deleteDELETE /realms/:realm_uri/groups/:id
  • [X] bondy.group.getGET /realms/:realm_uri/groups/:id
  • [X] bondy.group.list
  • [ ] bondy.group.remove_group
  • [ ] bondy.group.remove_groups
  • [X] bondy.group.updatePUT /realms/:realm_uri/groups/:id

Source

  • [x] bondy.source.add
  • [x] bondy.source.delete
  • [ ] bondy.source.get
  • [x] bondy.source.list
  • [x] bondy.source.match

Grant

See #22.

Session

  • [ ] wamp.session.get

Ticket

  • [ ] bondy.ticket.revoke_all

OAuth2 Token

Cluster

Bridge Relay (Edge)

  • [ ] bondy.router.bridge.add
  • [ ] bondy.router.bridge.remove
  • [ ] bondy.router.bridge.start
  • [ ] bondy.router.bridge.stop
  • [ ] bondy.router.bridge.get
  • [ ] bondy.router.bridge.list
  • [ ] bondy.router.bridge.status
  • [ ] bondy.router.bridge.check_spec

HTTP API Gateway

  • [ ] bondy.http_gateway.api.add
  • [X] bondy.http_gateway.api.getGET /api_specs/:id | GET /api_specs/:id/info
  • [X] bondy.http_gateway.api.list -> GET /api_specs
  • [X] bondy.http_gateway.api.load -> POST /api_specs
  • [x] bondy.http_gateway.api.delete

aramallo avatar Jan 03 '23 19:01 aramallo

Are there also permissions for managing realms or users / groups / grants in a realm? So a user must authenticate before any operation can be done.

Jopie01 avatar Jan 03 '23 21:01 Jopie01

With #25 fixed, we can assume that the next two are working.

  • [x] bondy.user.disable
  • [x] bondy.user.enable

Jopie01 avatar Apr 06 '23 20:04 Jopie01

Not really, cause you are using WAMP to call them e.g. wick :-) This task is to implement the HTTP API Gateway bindings

aramallo avatar Apr 07 '23 09:04 aramallo

Added the following HTTP API bindings

  • bondy.user.is_enabled -> GET /realms/:uri/users/:id/enabled
  • bondy.user.disable -> DELETE /realms/:uri/users/:id/enablde
  • bondy.user.enable -> PUT /realms/:uri/users/:id/enabled

Commit 080478a45e5f3ae36ed163424dbbf9d2150f4a9a

aramallo avatar Apr 07 '23 19:04 aramallo

Not really, cause you are using WAMP to call them This task is to implement the HTTP API Gateway bindings

Whoops ... :cry: my bad, was a bit too exited, because I'm using HTTP to do the WAMP call :grinning:

Jopie01 avatar Apr 07 '23 21:04 Jopie01

Added more APIs in 6e94528435527cc6838162136af12ac7ec3e3041

aramallo avatar Apr 10 '23 10:04 aramallo

Adding

  • [x] bondy.http_gateway.api.delete -> DELETE /api_specs/:id in PR https://github.com/bondy-io/bondy/pull/34

alejandro-miguez avatar Jul 22 '24 16:07 alejandro-miguez

Adding

  • [x] bondy.grant.create -> POST /realms/:realm_uri/grants
  • [x] bondy.grant.revoke -> PUT /realms/:realm_uri/grants
  • [x] bondy.realm.grants -> GET /realms/:realm_uri/grants
  • [x] bondy.group.grants -> GET /realms/:realm_uri/groups/:id/grants
  • [x] bondy.user.grants -> GET /realms/:realm_uri/users/:id/grants

in PR https://github.com/bondy-io/bondy/pull/35 and related to ISSUE https://github.com/bondy-io/bondy/issues/22

alejandro-miguez avatar Jul 23 '24 13:07 alejandro-miguez

Adding

  • [x] bondy.source.list -> GET /realms/:realm_uri/sources
  • [x] bondy.source.add -> POST /realms/:realm_uri/sources
  • [x] bondy.source.match -> GET /realms/:realm_uri/users/:id/sources
  • [x] bondy.source.delete -> DELETE /realms/:realm_uri/users/:id/sources

In PR https://github.com/bondy-io/bondy/pull/37

alejandro-miguez avatar Jul 30 '24 12:07 alejandro-miguez