Closed raych1 closed 2 weeks ago
It's due to the TeamsAdapter
class doesn't provide a constructor like the following signature, which would use PasswordServiceClientCredentialFactory
as default credential provider. I have to use CloudAdapter
class instead to resolve this issue.
CloudAdapter(BotFrameworkAuthentication botFrameworkAuthentication, ILogger logger = null)
Version
Microsoft.Bot.Connector.dll: 4.22.3
Describe the bug
Created
CertificateServiceClientCredentialsFactory
instance as type ofServiceClientCredentialsFactory
but PasswordServiceClientCredentialFactory is called to validate theAppId
from the claim. TheAppId
inPasswordServiceClientCredentialFactory
is null, which caused this error 'invalid AppId passed on token:xxx'.To Reproduce
This is part of my code in
program.cs
:I also use the code from this sample, which would meet the same error mentioned above.
Expected behavior
SNI certificate authentication should work.
Screenshots
Referenced packages: