Skip to content

Add a FindActiveSession function (or similar) to our clearpass client library #24

@zdc217

Description

@zdc217

Context

From SOAR Clearpass Issue 29

In order to terminate an active client connection more aggressively, we need to search for active sessions.

Tasks

  • add a call to the /api/session endpoint to find an active connection, using the MAC address (assuming it has such a function - if not, we need to reconsider issue 29 linked above)
  • wrap the api call in a function that takes a MAC address and returns a unique session identifier that can be used with future API calls (will be used in Add a DisconnectActiveSession function to the our clearpass client library #25)

References

See SOAR Clearpass Contributing Guide for API docs link. (Authenticated)

Higher level call - looks like we just have the MAC Address
https://github.com/techservicesillinois/soar-clearpass/blob/c50192337b960b021473e665cffe9ff6f6219c66/src/app/app.py#L71-L73

Metadata

Metadata

Assignees

Labels

good to goAn acceptable task list is present in this issuerequested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions