botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Is it possible to enable Skype for Business channel for multiple o365 tenants?

Open hpksp opened this issue 8 years ago • 7 comments

I have a bot channels registration account pointing to bot api hosted on azure. I want to enable Skype for Business channel for multiple o365 tenants using the same bot channels registration account. Is it possible to achieve this?

hpksp avatar Mar 03 '18 04:03 hpksp

Hi hpksp,

First of all you need to add your bot to SfB. To add your bot to Skype for Business, you must be the Tenant Administrator of a Skype for Business Online environment. You need to follow these steps: https://skypeappregistration.azurewebsites.net/bot/02ee8528-4bf4-49f0-96ff-a60f72577237

After that You implement ICredentialProvider which is responsible for looking up appPassword by AppId and validating that the password is correct. This means you can have a database of bot AppId/Passwords that one endpoint services, and you look up the appid/secret and validate calls.

[ BotAuthentication(CredentialProviderType=typeof(SimpleCredentialProvider))]

Here is a simple sample implementation https://docs.botframework.com/en-us/csharp/builder/sdkreference/d3/dde/_credential_provider_8cs_source.html

Regards, Francisco

FranciscoPonceGomez avatar Mar 05 '18 16:03 FranciscoPonceGomez

Hi Francisco,

Thanks for the detailed response :)

I'm already using Multi Credential Provider approach in my project and I use Azure SQL server to store all the credentials.

My question is more related to adding bot to SfB. I want to send out the "Connecting your bot to Skype for Business Online" link to our customers so that they can add our chatbot to their tenants. What I would like to clarify is that can I send the same link to multiple customers or do I need to create dedicated Bot Channel Registrations account for each and every customer.

Based on your answer what I understood was that one Microsoft App Id (Channel Registration Account) can be associated only with one o365 tenant. Really appreciate if you can clarify this. Thanks in advance.

Best Regards, Kasun

hpksp avatar Mar 06 '18 01:03 hpksp

Hi @FranciscoPonceGomez. Really appreciate if you could help me out with this question. Thanks :)

hpksp avatar Mar 08 '18 23:03 hpksp

I would love to know the answer to this also. We are not using the sfb bot framework stuff currently as we cant tell if multi-tenant is possible without manually registering an appid/secrets in each tenant. We are an ISV and have hundreds of customers, so this sort of manual setup isnt possible.

If they could register our bot (one appid/secret) in their tenant that would be "ok".

LoungeFlyZ avatar Mar 09 '18 20:03 LoungeFlyZ

I will take a look at this issue today.

Francisco

FranciscoPonceGomez avatar Mar 13 '18 18:03 FranciscoPonceGomez

@hpksp, @LoungeFlyZ . I can confirm that the same link can be sent to multiple customers with a single bot registration.

FranciscoPonceGomez avatar Mar 27 '18 17:03 FranciscoPonceGomez

@FranciscoPonceGomez This is great news!!!! Thanks for the update :+1:

hpksp avatar Mar 29 '18 14:03 hpksp