Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7179777
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T17:12:34+00:00 2026-05-28T17:12:34+00:00

That is, want a Rails application that lets me see a customized view of

  • 0

That is, want a Rails application that lets me see a customized view of the user’s Gmail calendar. But it’ll be on shared hosting so don’t want to store credentials, or have them in the clear.

Question: Can I securely access Gmail for a Rails app on shared hosting non-SSL without putting credentials at risk? How would I do this? (e.g. does OAuth or OpenID solve this)

Requirements would be:

  • Rails application will call Google Calendar via API
  • No credentials stored on shared hosting site (e.g. in database or whatever) – MANDATORY
  • Rails site is non-SSL – MANDATORY (for the purpose of this question)
  • Ability to stay logged in whilst browser still open – DESIREABLE (assume using session id…assuming this is secure)

For example exiting approach I’ve used which wouldn’t satisfy my requirements on my non-SSL rails site (on a shared host) would be:

# Get Google Calendar
service = GCal4Ruby::Service.new
service.authenticate("<google account name>", "<password>")  # <== requires password
cal = GCal4Ruby::Calendar.find(service, "myCalendar")[0]

# Get Google Events
search_str = "<search str>"
@events = GCal4Ruby::Event.find(cal, search_str, params)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T17:12:36+00:00Added an answer on May 28, 2026 at 5:12 pm

    You will get mixed content if you try to include in an http page an https Google calendar view loaded as an iframe.

    If you’re just doing API calls, as long as the API calls are from your server to an encrypted endpoint, https://calendar.google.com or something similar, then there are no problems.

    If you’re doing API calls from a non-http page in the browser, then a determined attacker will be able to eavesdrop on any data you serve, including credentials sent to the browser for forwarding to the calendar service.

    If you’re sending credentials to the browser you should also worry about exfiltration via XSS.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run my Rails application in a different scope so that I
I have a rails application that I want to add attachments to assets, so
I want to implement tags in my Rails application but I'm having trouble with
I'm building a Rails application that validates user input against an external REST service.
in my rails web application I am implementing Facebook connectivity. I want that whenever
Hi I'm developing a Rails application that exposes some methods via ActiveResource. I want
I have a Rails application that I want to be able to jump to
I have a Rails application that works with mongodb. I want to deploy it
I have some data that I want to store somewhere in my Rails app
I have a single Rails 2.2.2 app that I want to 'share' with multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.