Error when integrating google calender with skuid calender

  • 1
  • Question
  • Updated 2 years ago
  • Answered
I have been trying to integrate google calender with skuid calender. I did followed every step and still not working properly. Whenever I go to the page, it shows ""Unable to authenticate to service "googleCalenderModel": Login has been cancelled"". But when,I go to the edit page and click on preview , it works fine. Would be great if someone could help me with this issue.. (https://cheetah-632--cheetahbms.na30.... will show error. When i preview from edit page this is a URL--(https://cheetah-632--skuid.na30.visua...)
Photo of Amish Ranjit

Amish Ranjit

  • 192 Points 100 badge 2x thumb

Posted 2 years ago

  • 1
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
To expand on this issue a little more, we think the authentication issue is because the VF page we're trying to show the calendar component is in our managed package namespace "cheetahbms" and the oauth callback url is in the skuid namespace. 

The calendar works when we "preview" the skuid page and our page is rendered in the skuid namespace, but not when it is viewed as a VF page in our namespace. We tried different combinations of URLs for the oauth callback and could not find a solution.
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
Has anyone else been successful integrating google calendar inside of another package namespace?
Photo of Karen Waldschmitt

Karen Waldschmitt, Official Rep

  • 8,240 Points 5k badge 2x thumb
Amish & Craig~

There probably is a way to do that but it may be quite taxing to implement. It really depends on how the google calendar API is set up and what kind of calls you can make to it. You may need to build out the calendar one week at a time.

Thanks!
Karen
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
Karen,

Is that because of the package namespace? Does the page the calendar component is on have to be in the skuid namespace for Google Calendar? 
Photo of Zach McElrath

Zach McElrath, Employee

  • 49,056 Points 20k badge 2x thumb
Amish and Craig,

When you're running Skuid from a non-Skuid Visualforce domain, which you're doing, you'll need to add an additional Callback URL / Redirect URI and an additional allowed JavaScript Origin in your Google Calendar configuration corresponding to your package's Visualforce domain, e.g. https://cheetah-632--cheetahbms.na30.visual.force.com/apex/skuid__oauthcallback
Photo of Amish Ranjit

Amish Ranjit

  • 260 Points 250 badge 2x thumb
Hello Zack, 
                     I have added additional callback URl and also  an additional allowed JavaScript Origin. When I logon to the CheetahBMS system, my gmail account get successfully authenticated but still shows "Unable to authenticate to service "GoogleDataSource": Login has been cancelled" .
Wondering, if there is any issue related to Data source in skuid ?