HewlettPackard / oneview-golang

Golang bindings for OneView api's
Apache License 2.0
27 stars 21 forks source link

refresh login should check if the current session id is good #40

Closed sfc-gh-eraigosa closed 8 years ago

sfc-gh-eraigosa commented 8 years ago

Lets check if the current session id is good, and if not, refresh the session id with a new login id

https://github.com/HewlettPackard/oneview-golang/blob/master/icsp/auth.go#L74

https://github.com/HewlettPackard/oneview-golang/blob/master/ov/auth.go#L76

sfc-gh-eraigosa commented 8 years ago

This causes another side-effect in that docker-machine ls stops working after the original tokens are expired.

sfc-gh-eraigosa commented 8 years ago

@miqui been hacking today at google cafe in london, this is first half of the fix for icsp. Will work on ov half if you don't beat me to it first :dancers:

sfc-gh-eraigosa commented 8 years ago

@miqui ok, i was able to quickly update the ov part too... so just need to try this out with some new exe's