Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

Google Calendar

SmartConnector Forum

Schneider Electric support forum about SmartConnector applications for integration of other building management systems (BMS) into EcoStruxure Building Operation.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Building
  • SmartConnector
  • SmartConnector Forum
  • Google Calendar
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
JeffBowman
Sisko JeffBowman Sisko
164
ardak
ardak Schneider Alumni (Retired)
34
sesa180908_brid
Commander sesa180908_brid Commander
34
mike_meirovitz
Commander mike_meirovitz
21
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Solved Go to Solution
Back to SmartConnector Forum
Solved
sesa237670_brid
sesa237670_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-07-30 10:37 AM

0 Likes
5
1145
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 10:37 AM

Google Calendar

Hi Jeff,

I am working on an SmartConnector integration with Google Calendar. The Update Processor prompts for google account authentication in SmartConnector debug mode and generates an OAuth2 Token Response file for future authentication use. The issue is when I deploy my Update processor, it no longer prompt for Google credentials authentication from Smartconnector portal site.

If I use the credential file created in debug mode, Update Processor  reads the  google calendar from portal site. So, only issue seems is opening a browser window for authentication permission from SmartConnector portal. Any restrictions from SmartConnector portal ? I wonder if you have worked with Google Calendar… Any thoughts ?

Thanks!

Neeraj Tomar

Reply
  • All forum topics
  • Previous Topic
  • Next Topic

Accepted Solutions
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-07-30 11:43 AM

2 Likes
3
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 11:43 AM

Hi Neeraj,

Looks like we may have done the same extension, I also built a Google Calendar integration a while back. I ran into the same issue, there are different ways to tackle the auth but if you want to stick with the mode you have (which appears to be the same things as I did) then you could also write a short console app to deploy with your extension. I do this, it's documented as part of my install notes to run that first. It runs outside of the SmartConnector process once on setup and downloads and stores the OAuth token. The SmartConnector extension uses the downloaded credentials to make the requests thereafter.

I'm not sure if it's supported (or if it would work) but there's always a chance SmartConnector could start that console app out of the SC process in another thread. You could look at support for running Process.Start()

Just a thought.. you may have already done this but if not, it's a perfectly reasonable work around since you don't need this part to run after setup.

Adam.

See Answer In Context

Reply
Replies 5
JeffBowman
Sisko JeffBowman Sisko
Sisko

Posted: ‎2018-07-30 10:51 AM

1 Like
0
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 10:51 AM

Hi Neeraj,

What do you mean by prompt? Do you mean something pops up on your computer when you run it?

This may work in debug mode, since your Visual Studio is running as your personal user, the issue is the Smart Connector service runs as the System user. So this may be the problem.  Personally I wouldn’t want to rely on this, and perhaps you can do it programmatically where a Smart Connector configuration setting asks for these credentials, and you use those somehow to automatically generate the credential file.

Regards,

-Jeff

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-07-30 11:43 AM

2 Likes
3
1091
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 11:43 AM

Hi Neeraj,

Looks like we may have done the same extension, I also built a Google Calendar integration a while back. I ran into the same issue, there are different ways to tackle the auth but if you want to stick with the mode you have (which appears to be the same things as I did) then you could also write a short console app to deploy with your extension. I do this, it's documented as part of my install notes to run that first. It runs outside of the SmartConnector process once on setup and downloads and stores the OAuth token. The SmartConnector extension uses the downloaded credentials to make the requests thereafter.

I'm not sure if it's supported (or if it would work) but there's always a chance SmartConnector could start that console app out of the SC process in another thread. You could look at support for running Process.Start()

Just a thought.. you may have already done this but if not, it's a perfectly reasonable work around since you don't need this part to run after setup.

Adam.

Reply
sesa237670_brid
sesa237670_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-07-30 02:20 PM

0 Likes
2
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 02:20 PM

Thanks Adam. I have similar thoughts to have a separate application to get the authentication response – token file for use by smartconnector. I discussed with Jeff and he explained since SmartConnector is running as a service, it’s not possible to run an executable from it.

"there are different ways to tackle the auth" -- did you try some other methods too...

Reply
Adam_Summers
Lt. Commander Adam_Summers Lt. Commander
Lt. Commander

Posted: ‎2018-07-30 02:26 PM

0 Likes
1
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-30 02:26 PM

No I haven't tried any other methods for the Calendar API, I'm not sure if calendar supports anything other than OAuth, other google services support different auth methods which you could code into the extension processor. I just left my implementation with OAuth right now.

I guess it needs a bit more digging into the API docs to see if there is anything else which could be done. - It's been a few months since I was on that extension..

Reply
sesa237670_brid
sesa237670_brid Schneider Alumni (Retired)
Schneider Alumni (Retired)

Posted: ‎2018-07-31 08:11 AM

0 Likes
0
1090
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2018-07-31 08:11 AM

No problem. OAuth seems right way to do it. Thanks!

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of