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 8895451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:47:03+00:00 2026-06-14T23:47:03+00:00

Google doc ( https://developers.google.com/drive/delegation#instantiate_a_drive_service_object ) says: For security reasons service accounts are not supported

  • 0

Google doc ( https://developers.google.com/drive/delegation#instantiate_a_drive_service_object ) says:

For security reasons service accounts are not supported in client-side
Javascript. Service accounts for server-side Javascript is not yet
supported

I want to know is there any idea to implement it via php.
The following code will depicts my thought.

<?php $token = generateToken() ?>

<script type="text/javascript">

  TOKEN = <?php echo $token ?>;
  startDriveRead(TOKEN);

</script>

The user defined php function generateToken() will do the federated authentication(it is possible) and will return the token(I don’t know how to get the token).

The user defined JavaScript function startDriveRead() will use the token from the server side and will access the drive data ( I don’t know whether it is possible or not).

  • 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-14T23:47:05+00:00Added an answer on June 14, 2026 at 11:47 pm

    Have you thought about using a javascript controller that works asynchronously to call back the server and perform the requests in php? I have yet to see a way to get a visible auth token when using the domain wide delegation of authority method to connect to google accounts.

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

Sidebar

Related Questions

according to https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Standards I 'm not suppose to use DockPanel, VerticalPanel, HorizontalPanel. But Those
Am trying to create a doc (very very basic) using 2-legged OAuth ( https://developers.google.com/accounts/docs/OAuth
I follow the documentation there: https://developers.google.com/drive/v2/reference/children/list I would like to set a query in
I am using following code in my Android code, from here https://developers.google.com/drive/v2/reference/files/get Everthing is
Going through this tutorial https://developers.google.com/web-toolkit/doc/latest/tutorial/RPC it is mentioned that to set up a call
$links = array('https://google.com', 'http://aloe.com', 'http://foobar.org/image.jpg'); foreach ($links as $link) { $unacceptables = array('https:','.doc','.pdf', '.jpg',
Seeking help to design a layout as shown here: http://docs.google.com/Doc?docid=0AQhgDtGvE2HgZGZ6cmtua185MTd0eGdyZmc&hl=en The major challenge I
UPDATE : GWT 2.3 introduces a better mechanism to fight XSRF attacks. See http://code.google.com/webtoolkit/doc/latest/DevGuideSecurityRpcXsrf.html
I am using links like this : https://plus.google.com/share?url=www.myurl.com to share articles on Google+ from
I saw a report of similar failure here: https://groups.google.com/forum/?fromgroups=#!topic/sockjs/QNtA1_p_arU , but my problem seems

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.