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

  • SEARCH
  • Home
  • 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 8374371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:54:29+00:00 2026-06-09T14:54:29+00:00

Using the Google Drive web interface, I right click on a file, select ‘sharing’,

  • 0

Using the Google Drive web interface, I right click on a file, select ‘sharing’, to get to “Sharing Settings.” I set the file to “Public on the web – Anyone on the Internet can find and view.”

I then copy the “link to share”, in this case it is:
https://docs.google.com/open?id=0B6Cpn8NXwgGPbFBPMEh5VHc1cUU

I then click “Done.”

If I open another browser, no cookies, and try to visit the link, I am redirected to sign-in page for Google. I assumed this setting meant that no authentication would be required to view the file. Is this the expected behavior?

I am trying to do the same thing through the API, and I am not getting the expected result either when setting the permissions to public, setting ‘anyone’ as ‘reader,’ and using the webContentLink value for the file as the published URL. Also in this case, if I go to the link when not signed in to Google Apps, I am redirected to sign-in.

I call the following method to set permissions using this:

thePermission = insert_permission(userNickName,file['id'],"me","anyone","reader")

the method:

def insert_permission(userNickName,file_id, value, perm_type, role):

  credentials = get_stored_credentials(userNickName)
  service = CreateDrive(credentials)
  if service is None:
      return

  """Insert a new permission.

  Args:
    service: Drive API service instance.
    file_id: ID of the file to insert permission for.
    value: User or group e-mail address, domain name or None for 'default'
           type.
    perm_type: The value 'user', 'group', 'domain' or 'default'.
    role: The value 'owner', 'writer' or 'reader'.
  Returns:
    The inserted permission if successful, None otherwise.
  """
  new_permission = {
      'value': value,
      'type': perm_type,
      'role': role
  }
  try:
    return service.permissions().insert(
        fileId=file_id, body=new_permission).execute()
  except errors.HttpError, error:
     print 'An error occurred: %s' % error
  return None

I am asking about the UI interface primarily in this question, as it seems simpler to find out if I am expecting the correct result using what Google has made.

  • 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-06-09T14:54:30+00:00Added an answer on June 9, 2026 at 2:54 pm

    I finally found the problem in my case. My GAE app was using “Federated Login” for “Authentication Options”, instead of “Google Accounts API”. Everything worked with Google Drive API. I am able to put files, delete, move, you name it, with the Oauth login. But for some time now, I have been unable to share files publicly from Google Drive that were created from my GAE app. I was always prompted to login if trying to view these files without being logged in to Google Apps.

    I decided to drop Oauth login for GAE and go with Google Accounts logins since everyone using the app will now need Google Drive. After switching the GAE app in the dashboard from “Federated” to “Google Accounts”, I can happily share files to the public without any login required.

    So it appears that Google Drive does not yet fully support “Federated Login” at GAE, which is hardly anything to complain about since “Federated Login” is shown to be experimental.

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

Sidebar

Related Questions

I am getting an error when trying to get a Google Drive File using:
I'm trying to get access to the Google Drive API using RestKit on iOS
I am Using Google Picker api to access my google drive folder's files. The
I'm actually developing an application using Google Drive SDK. I don't want to create
Using Google App Engine, I am trying to urlfetch a gzip file from a
Using Google Apps for your Domain, is it possible to set up a catch-all
I have a .NET application that is using Google Drive to access the user's
I'm having an issue coding a click action using Selenium and the Chrome Web
I'm thinking about using Google Drive as a scalable cloud based data storage solution
Is there any way we could create a folder on google drive using PHP?

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.