Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple AppSecret and AppId #205

Closed
PrimeObjects opened this issue May 1, 2016 · 9 comments
Closed

Support multiple AppSecret and AppId #205

PrimeObjects opened this issue May 1, 2016 · 9 comments

Comments

@PrimeObjects
Copy link

If I want to have a bot as a service. I may want to issue different AppSecret to different apps, so I can stop the connection from an app by simply expire the appsecret. based on my understanding we have the following setting in web.config. How can I keep a list of AppSecret in a database table, so I can control the accessibility of different apps with different AppSecrets?

Thanks
Gary

@tomlm
Copy link
Contributor

tomlm commented May 1, 2016

What language?

On c# you can do your own basic auth by commenting out the botauthirization attribute and process the header yourself.

For outgoing when you create the connector client you can new up your own client credentials instance passing in any appid/app secret.

Sent from my tumbs


From: Gary Zhangmailto:notifications@github.com
Sent: ‎5/‎1/‎2016 8:19 AM
To: Microsoft/BotBuildermailto:BotBuilder@noreply.github.com
Subject: [Microsoft/BotBuilder] Support multiple AppSecret and AppId (#205)

If I want to have a bot as a service. I may want to issue different AppSecret to different apps, so I can stop the connection from an app by simply expire the appsecret. based on my understanding we have the following setting in web.config. How can I keep a list of AppSecret in a database table, so I can control the accessibility of different apps with different AppSecrets?

Thanks
Gary


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHubhttps://github.com//issues/205

@PrimeObjects
Copy link
Author

Hi Tom,
Thank you for the response. I went to botframework and recognized that AppId and AppSecret will be generated by botframework. However it seems botframework does not allow us manage a appid/appsecret database, unless I register same bot for each new client.

Cheers
Gary

@tomlm
Copy link
Contributor

tomlm commented May 2, 2016

Yes, that is correct.

We would like to support programmatic creation of bots but it is in our backlog

From: Gary Zhang [mailto:notifications@github.com]
Sent: Sunday, May 1, 2016 10:33 PM
To: Microsoft/BotBuilder BotBuilder@noreply.github.com
Cc: Tom Laird-McConnell Tom.Laird-McConnell@microsoft.com; Comment comment@noreply.github.com
Subject: Re: [Microsoft/BotBuilder] Support multiple AppSecret and AppId (#205)

Hi Tom,
Thank you for the response. I went to botframework and recognized that AppId and AppSecret will be generated by botframework. However it seems botframework does not allow us manage a appid/appsecret database, unless I register same bot for each new client.

Cheers
Gary


You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/205#issuecomment-216107767

@Roath
Copy link

Roath commented May 6, 2016

Hey Guys

(Edit, sorry I realize I'm in the wrong place for asking these questions.. I'll leave it here just in case )

Thanks for such an exciting framework.. only started playing 4 hours ago and have lots working already.. I love it!!. Got web chat and facebook working, but I'm really hanging out for the Skype Bot, but I have not got the email to allow me to set that up yet! :)

Don't know if this is the right area for you guys, but I am curious if the webchat can persist between refreshes. It seems the customer looses everything on a page reload.

Many thanks

Rob

@tomlm
Copy link
Contributor

tomlm commented May 6, 2016

You can pass them as parameters to the constructor
Client = New ConnectorClient(appId, appSecret)

From: Roath [mailto:notifications@github.com]
Sent: Thursday, May 5, 2016 6:53 PM
To: Microsoft/BotBuilder BotBuilder@noreply.github.com
Cc: Tom Laird-McConnell Tom.Laird-McConnell@microsoft.com; Comment comment@noreply.github.com
Subject: Re: [Microsoft/BotBuilder] Support multiple AppSecret and AppId (#205)

Hey Guys
I'm testing right now as I cannot get the ConnectorClient to work. I always get access denied.
I created my own controller ( in VB.net) as I am adding this to an existing collector service I have for Facebook webhooks for messages etc.

How do I add the appid and secret to the ConnectorClient , I have tried adding the headers to the DefaultRequestHeaders but didn't work.

Thanks for such an exciting framework.. only started playing 4 hours ago and have lots working already.. I love it!!. Got web chat and facebook working, but I'm really hanging out for the Skype Bot, but I have not got the email to allow me to set that up yet! :)

Don't know if this is the right area for you guys, but I am curious if the webchat can persist between refreshes. It seems the customer looses everything on a page reload.

Many thanks

Rob


You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/205#issuecomment-217329201

@tomlm
Copy link
Contributor

tomlm commented May 6, 2016

That is correct. We do not (yet) support programmatic creation of bots.

From: Gary Zhang [mailto:notifications@github.com]
Sent: Sunday, May 1, 2016 10:33 PM
To: Microsoft/BotBuilder BotBuilder@noreply.github.com
Cc: Tom Laird-McConnell Tom.Laird-McConnell@microsoft.com; Comment comment@noreply.github.com
Subject: Re: [Microsoft/BotBuilder] Support multiple AppSecret and AppId (#205)

Hi Tom,
Thank you for the response. I went to botframework and recognized that AppId and AppSecret will be generated by botframework. However it seems botframework does not allow us manage a appid/appsecret database, unless I register same bot for each new client.

Cheers
Gary


You are receiving this because you commented.
Reply to this email directly or view it on GitHubhttps://github.com//issues/205#issuecomment-216107767

@Roath
Copy link

Roath commented May 7, 2016

Thanks Tom.. I had worked it out shortly afterwards.. hence editing the original post!

Have most things working now.. but I can't work out how to use the web chat 'nicely'. There is no way to set the users name or persist the chat between refreshes ( that I can see?)

I see people are using the Skype bot.. I don't seem to be allowed to create one.. I get a form to fill out , submit it and never get an email. I'm in NZ , so I should be part of the initial trial .. any thoughts?

Sorry, I'm sure this is not your area, but does not seem to much info about this stuff around yet!

Many thanks

Rob

@Stevenic
Copy link
Contributor

Stevenic commented May 8, 2016

@Roath they're approving people pretty fast so just hang tight.

@Stevenic
Copy link
Contributor

Stevenic commented May 8, 2016

Re-open if you need Rob

@Stevenic Stevenic closed this as completed May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants