8000 Removed certificate auth properties from BotFrameworkAdapterSettings … · guptarohan41/botbuilder-python@e907bfc · GitHub
[go: up one dir, main page]

Skip to content

Commit e907bfc

Browse files
committed
Removed certificate auth properties from BotFrameworkAdapterSettings (pass in AppCredentials instead)
1 parent c3ddbd9 commit e907bfc

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

libraries/botbuilder-core/botbuilder/core/bot_framework_adapter.py

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,6 @@ def __init__(
8787
open_id_metadata: str = None,
8888
channel_provider: ChannelProvider = None,
8989
auth_configuration: AuthenticationConfiguration = None,
90-
certificate_thumbprint: str = None,
91-
certificate_private_key: str = None,
9290
app_credentials: AppCredentials = None,
9391
credential_provider: CredentialProvider = None,
9492
):
@@ -107,19 +105,14 @@ def __init__(
107105
:param open_id_metadata:
108106
:type open_id_metadata: str
109107
:param channel_provider: The channel provider
110-
:type channel_provider: :class:`botframework.connector.auth.ChannelProvider`
108+
:type channel_provider: :class:`botframework.connector.auth.ChannelProvider`. Defaults to SimpleChannelProvider
109+
if one isn't specified.
111110
:param auth_configuration:
112111
:type auth_configuration: :class:`botframework.connector.auth.AuthenticationConfiguration`
113-
:param certificate_thumbprint: X509 thumbprint
114-
:type certificate_thumbprint: str
115-
:param certificate_private_key: X509 private key
116-
:type certificate_private_key: str
117-
118-
.. remarks::
119-
For credentials authorization, both app_id and app_password are required.
120-
For certificate authorization, app_id, certificate_thumbprint, and certificate_private_key are required.
121-
112+
:param credential_provider: Defaults to SimpleCredentialProvider if one isn't specified.
113+
:param app_credentials: Allows for a custom AppCredentials. Used, for example, for CertificateAppCredentials.
122114
"""
115+
123116
self.app_id = app_id
124117
self.app_password = app_password
125118
self.app_credentials = app_credentials
@@ -134,8 +127,6 @@ def __init__(
134127
else SimpleCredentialProvider(self.app_id, self.app_password)
135128
)
136129
self.auth_configuration = auth_configuration or AuthenticationConfiguration()
137-
self.certificate_thumbprint = certificate_thumbprint
138-
self.certificate_private_key = certificate_private_key
139130

140131
# If no open_id_metadata values were passed in the settings, check the
141132
# process' Environment Variable.

0 commit comments

Comments
 (0)
0