getAuthSubject function

Get the authentication subject.

Get the authentication subject.

getAuthSubject(.Object, ...) ## S4 method for signature 'AuthenticationManager' getAuthSubject(.Object, node)

Arguments

  • .Object: an AuthenticationManager instance
  • ...: (Not yet used)
  • node: A D1Node instance

Returns

the DataONE Subject that is your client's identity

Details

The authenticated user, aka 'subject' is retrieved from the authentication mechanism currently being used, either an authentication token or an X.509 certificate. The 'node'

argument is used to determine the authentication mechanism that is appropriate for the specified 'node'. For example, authentication tokens are supported on DataONE nodes that use the DataONE V2.0 API or higher, so if the node uses the V1 API, then only an X.509 certificate can be used.

  • Maintainer: Matthew B. Jones
  • License: Apache License 2.0
  • Last published: 2022-06-10