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

Is it possible to login with session token? #324

Closed
ricardoas opened this issue Oct 17, 2017 · 3 comments
Closed

Is it possible to login with session token? #324

ricardoas opened this issue Oct 17, 2017 · 3 comments
Assignees

Comments

@ricardoas
Copy link

Scenario/Intent

I have a RESTful service that queries OneView resources via python-hpOneView and I want to provide session resources in this service using OneView credentials. The simple scenario is, considering each RESTful service corresponds to a single OneView appliance:

  • the service knows OneView ip address;
  • the user post to the service a username+password combination; it creates a hpOneView client instance and gives back the x-auth-token on the service header
  • the user access other services resources passing x-auth-token header which is used to build another hpOneView client instance and perform requests.

I know that python-hpOneView POSTs username+password to OneView's /rest/login-sessions when creating a new client instance and I think that a similar approach can be used with the session token and a PUT request to validate it.

Would you consider providing this additional authentication in a near version?

@fgbulsoni
Copy link
Contributor

fgbulsoni commented Oct 18, 2017

Looks the same as #273 .

Possibly doable, but it's important to mention that the maintainer's role for this SDK is being transitioned to another team by end of this month.

I'll try to get this into our list of priorities before the hand over.

@ricardoas
Copy link
Author

Thank you, @fgbulsoni!

It is indeed the same as #273... sorry for opening a new issue!

@fgbulsoni
Copy link
Contributor

Resolved by #335 .

AnushaY1916 pushed a commit that referenced this issue Mar 2, 2018
…ct_type

Modifying documentation for Interconnect Type to sync it with Ansible-core library
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants