Getting Bad Request while testing Calendar Skill on Emulator
Hi,
I have deployed Calendar skill and while testing on Emulator I get login prompt. When i click on login prompt i get signin screen with bad request.
Please see the attached screenshot.

Hi @gagankohli2000 could you check the issue #1419 and see if your problem is the same? If so, I would ask you to close this issue and follow up the other one, thanks!
Thanks. I tried adding skill on Virtual Assistant and now getting following error.

I have deployed skills and now accessing via virtual assistant. Still getting Bad Request when login with outlook

Could you confirm the name of your oath connection name in appsettings.config (VA project) and the name of the oauth connection on your VA bot in the Azure Portal, they should match
Here is the appsettings.json. I'm testing on Emulator "oauthConnections": [ { "provider": "Azure Active Directory v2", "name": "Outlook" } ] }
Here is Azure Portal screenshot

Morning,
I've deployed a fresh copy of the Calendar Skill and followed this (new) instructions I'll merge into documentation later. Would be good to verify things match in your configuration. This is assuming you are using the skill directly, not via Virtual Assistant.
Out of interest. before you do this are you using a @outlook, @hotmail account or an o365 account (i.e. your employer?)
Authentication Connection Settings
If you plan to use the skill as part of a Virtual Assistant the process of registering a skill with your Virtual Assistant will create the supporting authentication connection information automatically for your Virtual Assistant. This skill uses the following authentication scopes which are registered automatically:
User.ReadBasic.AllCalendars.ReadWritePeople.ReadContacts.Read
However, if you wish to use the Skill directly without using a Virtual Assitant please use the following steps to manually configure Authentication for the Calendar Skill. This is not required when using the Skill with a Virtual Assistant.
If you wish to make use of the Calendar, Email and Task Skills you need to configure an Authentication Connection enabling uses of your Assistant to authenticate against services such as Office 365 and securely store a token which can be retrieved by your assistant when a user asks a question such as "What does my day look like today" to then use against an API like Microsoft Graph.
The Add Authentication to your bot section in the Azure Bot Service documentation covers more detail on how to configure Authentication. However in this scenario, the automated deployment step has already created the Azure AD v2 Application for your Bot and you instead need to follow these instructions:
- Navigate to the Azure Portal, Click Azure Active Directory and then
App Registrations - Find the Application that's been created for your Bot as part of the deployment. You can search for the application by name or ApplicationID as part of the experience but note that search only works across applications currently shown and the one you need may be on a separate page.
- Click API permissions on the left-hand navigation
- Select Add Permission to show the permissions pane
- Select
Microsoft Graph - Select Delegated Permissions and then add each of the following permissions required for the Productivity Skills:
User.ReadBasic.AllCalendars.ReadWritePeople.ReadContacts.Read
- Click Add Permissions at the bottom to apply the changes.
Next you need to create the Authentication Connection for your Bot. Within the Azure Portal, find the Web App Bot resource created when your deployed your Bot and choose Settings.
- Scroll down to the oAuth Connection settings section.
- Click
Add Setting - Type in the name of your Connection Setting - e.g.
Outlook - Choose
Azure Active Directory v2from the Service Provider drop-down - Open the
appSettings.configfile for your Skill- Copy/Paste the value of
microsoftAppIdinto the ClientId setting - Copy/Paste the value of
microsoftAppPasswordinto the Client Secret setting - Set Tenant Id to common
- Set scopes to
User.ReadBasic.All, Calendars.ReadWrite, People.Read, Contacts.Read
- Copy/Paste the value of
Finally, open the appSettings.config file for your Calendar Skill and update the connection name to match the one provided in the previous step.
"oauthConnections": [
{
"name": "Outlook",
"provider": "Azure Active Directory v2"
}
],
https://github.com/microsoft/botframework-solutions/blob/master/docs/reference/skills/productivity-calendar.md
Thank Darren. Calendar skill is working independently now but when i run VA I'm still getting Bad Request error.
@gagankohli2000 - Out of interest, if you use the Calendar Skill directly using the Emulator are you able to authenticate OK? i.e. you don't get BadRequest? Only when using the Skill through VA?