Skip to content
This repository has been archived by the owner on Oct 15, 2020. It is now read-only.

Delete login sessions #315

Open
VincentBerger opened this issue Sep 20, 2017 · 0 comments
Open

Delete login sessions #315

VincentBerger opened this issue Sep 20, 2017 · 0 comments

Comments

@VincentBerger
Copy link

Scenario/Intent

We should be able to delete login sessions used by this module

Environment Details

  • OneView SDK Version: 4.2.0
  • OneView Appliance Version: 3.10.04
  • OneView Client API Version: 500
  • Python Version: 2.7.9
  • Platform: SLES 12 SP2

Steps to Reproduce

There does not seem to be a function to logout a session (which would translate to DELETE on /rest/login-sessions with the auth header set to the session token)

Expected Result

I want to be able to clean up login sessions. Either explicitly with a logout function on the OneView client, and/or, better, automatically when the OneView client object is destroyed so that we don't rely on the script author remembering to write some cleanup code

Actual Result

Sessions are not logged out and remain in the OneView db. This has caused problems in the past, specifically: http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=emr_na-a00021788en_us&sp4ts.oid=5410258

AnushaY1916 pushed a commit that referenced this issue Mar 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants