Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose all the Bondy Admin WAMP API Procedures via HTTP #21

Open
34 of 52 tasks
aramallo opened this issue Jan 3, 2023 · 9 comments
Open
34 of 52 tasks

Expose all the Bondy Admin WAMP API Procedures via HTTP #21

aramallo opened this issue Jan 3, 2023 · 9 comments
Assignees

Comments

@aramallo
Copy link
Contributor

aramallo commented Jan 3, 2023

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

Realm

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

User

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

Group

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

Source

  • bondy.source.add
  • bondy.source.delete
  • bondy.source.get
  • bondy.source.list
  • 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
  • bondy.http_gateway.api.getGET /api_specs/:id | GET /api_specs/:id/info
  • bondy.http_gateway.api.list -> GET /api_specs
  • bondy.http_gateway.api.load -> POST /api_specs
  • bondy.http_gateway.api.delete
@Jopie01
Copy link

Jopie01 commented Jan 3, 2023

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
Copy link

Jopie01 commented Apr 6, 2023

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

  • bondy.user.disable
  • bondy.user.enable

@aramallo
Copy link
Contributor Author

aramallo commented Apr 7, 2023

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

@aramallo
Copy link
Contributor Author

aramallo commented Apr 7, 2023

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 080478a

@Jopie01
Copy link

Jopie01 commented Apr 7, 2023

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

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

@aramallo
Copy link
Contributor Author

Added more APIs in 6e94528

@alejandro-miguez
Copy link
Contributor

alejandro-miguez commented Jul 22, 2024

Adding

@alejandro-miguez
Copy link
Contributor

alejandro-miguez commented Jul 23, 2024

Adding

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

in PR #35 and related to ISSUE #22

@alejandro-miguez
Copy link
Contributor

alejandro-miguez commented Jul 30, 2024

Adding

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

In PR #37

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

No branches or pull requests

3 participants