Get Auth Details VI

Owning Palette: Security VIs

Requires: Full Development System (Real-Time, Windows)

Returns the authentication details associated with the current HTTP request. If you published Web services to the NI Web Server, use the Get Auth Details for NI Web Server VI instead.

Note  For more information about concepts in this topic, refer to the Web services introduction and tutorial.

 Add to the block diagram  Find on the palette
LabVIEW Web Service Request is an identifier used by Web Services VIs to reference a specific HTTP request. LabVIEW Web Service Request works similarly to a refnum in LabVIEW, allowing you to wire together Web Services VIs within your application. You must wire Web Services VIs to the LabVIEW Web Service Request control or an existing value from the LabVIEW Web Service Request out terminal of another VI.

When you use Web Services VI(s) within a Web method VI, you must assign the original LabVIEW Web Service Request control to the connector pane of the Web method VI.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
username returns the username of the user currently logged in. If no user is logged in, this output returns an empty string.
LabVIEW Web Service Request out is an identifier that VIs on the Web Services palette use to reference a specific HTTP request. Use LabVIEW Web Service Request out to wire together Web Services VIs within your application.
groups returns the groups of the user associated with the request. If no user is logged in, this output returns the group everyone.
permissions returns the permissions associated with the request, including permissions associated with a logged in user and groups that user belongs to.
error out contains error information. This output provides standard error out functionality.
key returns the unique key associated with the login session. A key is associated with the request when a user successfully logs in. Each login session generates a unique key. The Encrypt, Decrypt, HTTP client Encrypt, and HTTP client Decrypt VIs encrypt and decrypt data using this key or a key that the ConfigKey VI generates.