stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
211 stars 112 forks source link

Usage of one time usable token in client config #258

Closed harshitha-reddy23 closed 4 months ago

harshitha-reddy23 commented 1 year ago

can u explain how the token is used, is it creating a session for token ?

stmcginnis commented 1 year ago

Hi @harshitha-reddy23 - yes, when connecting to a Redfish service, the connection is authenticated with either basic credentials or a session token. That token is used to track which session the client is so subsequent API calls know who the caller is.

You can see how some of that session initialization is performed here: https://github.com/stmcginnis/gofish/blob/main/client.go#L165