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

Cannot post activity. Unauthorized.

Open gagankohli2000 opened this issue 7 years ago • 4 comments

Project

Name: Calendar Skills

Language: c#

Description

I have successfully deployed calendar skill solution but while running i'm getting "Cannot post activity. Unauthorized."

To Reproduce

Expected behavior

Screenshots

Additional context

gagankohli2000 avatar May 19 '19 03:05 gagankohli2000

Hi - Are you using the emulator? If so, are you using the AppId and Secret added to the appsettings.config file in your calendar skill?

darrenj avatar May 19 '19 09:05 darrenj

Yes, I'm using the emulator and Appid and Secret added to appsettings.config. Is this Calendar works with google or Office365? I see settings for googleAppName, Clientid and ClientSecret.

gagankohli2000 avatar May 19 '19 12:05 gagankohli2000

Hi,

Assuming your getting the unauthorized issue when your asking the Skill something? e.g. what meetings do I have today and it's failing when trying to show the oauthcard?

The Calendar skill works with Google and Office 365. When the Calendar Skill is added to a Virtual Assistant Bot we create all of the authentication connection configuration for you (Office 365 only) however if you are installing/using the Calendar Skill directly this isn't done for you (it's part of the add skill functionality).

Thanks for raising as we don't have the manual steps in the latest documentation for this type of configuration. I've raised #1382 to track resolution.

darrenj avatar May 20 '19 06:05 darrenj

Closed by #1433

lauren-mills avatar Jun 03 '19 16:06 lauren-mills