blpapi.AuthOptions¶
-
class
blpapi.AuthOptions¶ Defines the authorization options which the user can set on
SessionOptionsas the authorization options for the session identity or use to authorize other identities.-
classmethod
createWithApp(appName)¶ Create an
AuthOptionsinstance for Application Mode.- Parameters
appName (str) – app name used for Application Mode.
- Returns
Specifies Application Mode.
- Return type
The behavior is undefined when
appNameisNoneor"".
-
classmethod
createWithToken(token)¶ Create an
AuthOptionsinstance for Manual Token Mode.- Parameters
token (str) – token to use for Manual Token Mode.
- Returns
Specifies Manual Token Mode.
- Return type
The behavior is undefined when
tokenisNoneor"".
-
classmethod
createWithUser(user)¶ Creates an
AuthOptionsinstance for User Mode with the Operating System Login (Domain/User), Active Directory, or Email.- Parameters
user (AuthUser) – user-specific authorization option.
- Returns
Specifies User Mode with the Operating System Login (Domain/User), Active Directory, or Email.
- Return type
The behavior is undefined when
userwas created withAuthUser.createWithManualOptions()or isNone.
-
classmethod
createWithUserAndApp(user, appName)¶ Create an
AuthOptionsinstance for User and Application Mode.- Parameters
- Returns
an
AuthOptionsthat contains the authorization option for the User+Application authorization mode.- Return type
The behavior is undefined when
appNameisNoneor"".
-
destroy()¶ Destroy this
AuthOptions.
-
classmethod