pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

<legend id='mS50R'><style id='mS50R'><dir id='mS50R'><q id='mS50R'></q></dir></style></legend>
    1. <small id='mS50R'></small><noframes id='mS50R'>

      1. <tfoot id='mS50R'></tfoot>

        <i id='mS50R'><tr id='mS50R'><dt id='mS50R'><q id='mS50R'><span id='mS50R'><b id='mS50R'><form id='mS50R'><ins id='mS50R'></ins><ul id='mS50R'></ul><sub id='mS50R'></sub></form><legend id='mS50R'></legend><bdo id='mS50R'><pre id='mS50R'><center id='mS50R'></center></pre></bdo></b><th id='mS50R'></th></span></q></dt></tr></i><div class="vplpfb5" id='mS50R'><tfoot id='mS50R'></tfoot><dl id='mS50R'><fieldset id='mS50R'></fieldset></dl></div>
          <bdo id='mS50R'></bdo><ul id='mS50R'></ul>

        如何在 Google 日歷中使用 OAuth 以僅訪問一個日歷

        How to use OAuth with Google Calendar to access only ONE calendar?(如何在 Google 日歷中使用 OAuth 以僅訪問一個日歷?)

          • <bdo id='ujHWM'></bdo><ul id='ujHWM'></ul>

              <small id='ujHWM'></small><noframes id='ujHWM'>

            1. <tfoot id='ujHWM'></tfoot>
              1. <i id='ujHWM'><tr id='ujHWM'><dt id='ujHWM'><q id='ujHWM'><span id='ujHWM'><b id='ujHWM'><form id='ujHWM'><ins id='ujHWM'></ins><ul id='ujHWM'></ul><sub id='ujHWM'></sub></form><legend id='ujHWM'></legend><bdo id='ujHWM'><pre id='ujHWM'><center id='ujHWM'></center></pre></bdo></b><th id='ujHWM'></th></span></q></dt></tr></i><div class="9htbjhn" id='ujHWM'><tfoot id='ujHWM'></tfoot><dl id='ujHWM'><fieldset id='ujHWM'></fieldset></dl></div>
                <legend id='ujHWM'><style id='ujHWM'><dir id='ujHWM'><q id='ujHWM'></q></dir></style></legend>
                    <tbody id='ujHWM'></tbody>
                  本文介紹了如何在 Google 日歷中使用 OAuth 以僅訪問一個日歷?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我正在為客戶構建一個 Web 應用程序,但我不確定我是否在做正確的事情...

                  I'm building a web application for a customer and I'm not really sure I'm doing the right thing...

                  基本上,我創建了一個 PHP 應用程序,它可以讀取、編輯、刪除 Google 上的日歷,并在我自己的 Web 應用程序數據庫中保留一個副本(出于各種原因).現在,我閱讀了 OAuth 2.0 并意識到使用它比直接在我的網絡應用程序中的 PHP 文件(在其他也就是說,如果黑客進入服務器,他就可以竊取她的密碼……)

                  Basically, I created a PHP application that read, edit, delete calendars on Google and keeps a copy on my own web application DB (for various reasons). Now, I read about the OAuth 2.0 and realise it could be safer to use this than have my client general Google password (that access ALL google services (calendar, email, etc)) directly in my web app in a PHP file (in other words, if a hacker enter the server than he can steal her password...).

                  所以我創建了 OAuth 2.0 帳戶,從這個頁面添加類/文件夾 http://code.google.com/apis/calendar/v3/using.html#setup 并添加了測試頁面上的適當腳本以授權訪問您的信息"(請參閱同一頁面中的實例化客戶端") ...

                  So I created the OAuth 2.0 account, add the classes/folders from this page http://code.google.com/apis/calendar/v3/using.html#setup and added the proper scripts on a test page to "authorize access to your information" (see "Instantiating the client " in the same page)?...

                  這是我的問題:如果我使用我的登錄信息(不是我的客戶)登錄我的 gmail 并轉到我的測試頁面,它會要求我授權訪問我的 Google 日歷.但我想要我客戶的日歷,而不是我的!所以,讓我們假設我退出,使用我的客戶信息登錄并轉到測試頁面:這很完美,我授權了帳戶,然后我被重定向到我的應用程序,我可以在其中看到她的日歷.

                  Here is my questions: If I am logged in my gmail with MY login info (not my Client) and I go to my test page, it will ask ME to authorize access to my Google Calendar. But I want my client's calendar, NOT MINE! So, let's pretend I logout, log in with my customer info and go to the test page : it's perfect, I authorize the account, then I'm redirected to my app where i can see HER calendar.

                  但這不切實際或不合邏輯...因為,例如,我希望她的 GENERAL PUBLIC 網站上的人進入一個頁面,并填寫表格以自動安排她的約會.該腳本必須檢查她的谷歌日歷....并要求他們的 gmail 帳戶許可?不,我想要她的日歷.

                  But this is not practical OR logical... Since, for example, I want people on her GENERAL PUBLIC website to go on a page, and fill a form in order to automate her appointments. The script must check her google calendar.... and ask permission for THEIR gmail accounts? No, I want HER calendar.

                  這是我的問題/問題.我究竟做錯了什么?這是正確的方法還是我錯過了一步?這個 API 是用來做這個的嗎?

                  So this is my problem / question. What am I doing wrong? Is this the right way to do so or did I miss a step? Was this API meant to do this?

                  如何使用 API 以上述方式工作?

                  How can I use the API to work in the way described above?

                  感謝大家點燃我的蠟燭

                  喬爾

                  推薦答案

                  如果我沒理解錯,那么您就已經獲得了正確的身份驗證.問題是你不想顯示登錄用戶的日歷;您想顯示客戶的日歷.

                  If I'm understanding you correctly, you've got the authentication right. The problem is that you don't want to display the calendar of the logged-in user; you want to display your client's calendar.

                  用戶可以在以下兩種情況之一寫入日歷:

                  A user can write to a calendar in one of two circumstances:

                  1. 用戶擁有日歷,或
                  2. 所有者通過指定用戶的電子郵件地址明確授予用戶寫入權限.

                  顯然第二種情況不能擴展.無論哪種情況,您都需要將客戶的憑據嵌入到應用程序中,然后使用它們代表經過身份驗證的用戶創建約會,或者與用戶共享日歷.當然,您需要對客戶的憑據進行加密——不要簡單地在您的應用中對其進行硬編碼!

                  Clearly the second situation doesn't scale. And in either case, you'd need to embed your client's credentials in your application, then use them either to create appointments on behalf of an authenticated user, or to share the calendar with the user. Of course, you'll want to encrypt your client's credentials--don't simply hard-code them in your app!

                  與使用您客戶的真實"帳戶相比,專門為此日歷創建一個新帳戶(使用唯一的電子郵件地址和密碼)似乎更安全.然后,您的客戶可以像她的客戶一樣通過您的應用程序訪問它,或者您可以與她共享日歷并授予她寫入權限.

                  Rather than using your client's "real" account, it would seem more secure to create a new account (with a unique email address and password) specifically for this calendar. Your client could then access it through your application as her customers would, or you could share the calendar with her and give her write access.

                  另一種可能性可能是將日歷設置為對用戶只讀,而不是允許他們直接在您客戶的日歷上創建約會,您的應用可以讓他們請求em>約會:它會在用戶的日歷上創建事件并將邀請發送到您客戶的日歷.那么您的應用程序將不需要任何嵌入式憑據.它還可以讓您的客戶有機會確認或拒絕每個約會,自動將她的回復發送給她的用戶.另一個好處是每個用戶的約會都會出現在他/她自己的個人 Google 日歷上.

                  Another possibility might be to make the calendar read-only to the users, and rather than allowing them to create appointments directly on your client's calendar, your app could let them request appointments: it would create the events on the users' calendars and send invitations to your client's calendar. Then your app won't need any embedded credentials. It would also give your client the opportunity to confirm or decline each appointment, automatically sending her response to her users. Another benefit is that each user's appointments would appear on his/her own personal Google calendar.

                  我很想知道您(或其他任何人)是否找到了更好的解決方案.

                  I'd be interested to know if you (or anyone else) finds a better solution.

                  這篇關于如何在 Google 日歷中使用 OAuth 以僅訪問一個日歷?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                  PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                  PHP PDO ODBC connection(PHP PDO ODBC 連接)
                  Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                  php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                  MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                  <i id='jZjMG'><tr id='jZjMG'><dt id='jZjMG'><q id='jZjMG'><span id='jZjMG'><b id='jZjMG'><form id='jZjMG'><ins id='jZjMG'></ins><ul id='jZjMG'></ul><sub id='jZjMG'></sub></form><legend id='jZjMG'></legend><bdo id='jZjMG'><pre id='jZjMG'><center id='jZjMG'></center></pre></bdo></b><th id='jZjMG'></th></span></q></dt></tr></i><div class="fpfpnjn" id='jZjMG'><tfoot id='jZjMG'></tfoot><dl id='jZjMG'><fieldset id='jZjMG'></fieldset></dl></div>

                  • <tfoot id='jZjMG'></tfoot>
                        <tbody id='jZjMG'></tbody>

                        • <bdo id='jZjMG'></bdo><ul id='jZjMG'></ul>

                            <small id='jZjMG'></small><noframes id='jZjMG'>

                            <legend id='jZjMG'><style id='jZjMG'><dir id='jZjMG'><q id='jZjMG'></q></dir></style></legend>
                            主站蜘蛛池模板: 背压阀|减压器|不锈钢减压器|减压阀|卫生级背压阀|单向阀|背压阀厂家-上海沃原自控阀门有限公司 本安接线盒-本安电路用接线盒-本安分线盒-矿用电话接线盒-JHH生产厂家-宁波龙亿电子科技有限公司 | 代做标书-代写标书-专业标书文件编辑-「深圳卓越创兴公司」 | 珠海白蚁防治_珠海灭鼠_珠海杀虫灭鼠_珠海灭蟑螂_珠海酒店消杀_珠海工厂杀虫灭鼠_立净虫控防治服务有限公司 | 焊接烟尘净化器__焊烟除尘设备_打磨工作台_喷漆废气治理设备 -催化燃烧设备 _天津路博蓝天环保科技有限公司 | 金属切削液-脱水防锈油-电火花机油-抗磨液压油-深圳市雨辰宏业科技发展有限公司 | 冷藏车-东风吸污车-纯电动环卫车-污水净化车-应急特勤保障车-程力专汽厂家-程力专用汽车股份有限公司销售二十一分公司 | 集菌仪_智能集菌仪_全封闭集菌仪_无菌检查集菌仪厂家-那艾 | 斗式提升机,斗式提升机厂家-淄博宏建机械有限公司 | 鹤壁创新仪器公司-全自动量热仪,定硫仪,煤炭测硫仪,灰熔点测定仪,快速自动测氢仪,工业分析仪,煤质化验仪器 | 原色会计-合肥注册公司_合肥代理记账公司_营业执照代办 | 法兰螺母 - 不锈钢螺母制造厂家 - 万千紧固件--螺母街 | 电缆故障测试仪_电缆故障定位仪_探测仪_检测仪器_陕西意联电气厂家 | 上海盐水喷雾试验机_两厢式冷热冲击试验箱-巨怡环试 | 上海防爆真空干燥箱-上海防爆冷库-上海防爆冷柜?-上海浦下防爆设备厂家? | 冲锋衣滑雪服厂家-冲锋衣定制工厂-滑雪服加工厂-广东睿牛户外(S-GERT) | 双齿辊破碎机-大型狼牙破碎机视频-对辊破碎机价格/型号图片-金联机械设备生产厂家 | 警用|治安|保安|不锈钢岗亭-售货亭价格-垃圾分类亭-移动厕所厂家-苏州灿宇建材 | STRO|DTRO-STRO反渗透膜(科普)_碟滤 | 辽宁资质代办_辽宁建筑资质办理_辽宁建筑资质延期升级_辽宁中杭资质代办 | 洁净棚-洁净工作棚-无菌室-净化工程公司_北京卫护科技有限公司 | 杭州ROHS检测仪-XRF测试仪价格-百科 | 选矿设备-新型重选设备-金属矿尾矿重选-青州冠诚重工机械有限公司 | 烽火安全网_加密软件、神盾软件官网 | 【MBA备考网】-2024年工商管理硕士MBA院校/报考条件/培训/考试科目/提前面试/考试/学费-MBA备考网 | 转向助力泵/水泵/发电机皮带轮生产厂家-锦州华一精工有限公司 | pos机办理,智能/扫码/二维码/微信支付宝pos机-北京万汇通宝商贸有限公司 | 电销卡_稳定企业大语音卡-归属地可选-世纪通信 | 国产液相色谱仪-超高效液相色谱仪厂家-上海伍丰科学仪器有限公司 | lcd条形屏-液晶长条屏-户外广告屏-条形智能显示屏-深圳市条形智能电子有限公司 | 洗瓶机厂家-酒瓶玻璃瓶冲瓶机-瓶子烘干机-封口旋盖压盖打塞机_青州惠联灌装机械 | 深圳希玛林顺潮眼科医院(官网)│深圳眼科医院│医保定点│香港希玛林顺潮眼科中心连锁品牌 | uv固化机-丝印uv机-工业烤箱-五金蚀刻机-分拣输送机 - 保定市丰辉机械设备制造有限公司 | 校服厂家,英伦校服定做工厂,园服生产定制厂商-东莞市艾咪天使校服 | 期货软件-专业期货分析软件下载-云智赢 | 山东信蓝建设有限公司官网 | 贴片电容代理-三星电容-村田电容-风华电容-国巨电容-深圳市昂洋科技有限公司 | 水厂自动化|污水处理中控系统|水利信息化|智慧水务|智慧农业-山东德艾自动化科技有限公司 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 锤式粉碎机,医药粉碎机,锥式粉碎机-无锡市迪麦森机械制造有限公司 | SMN-1/SMN-A ABB抽屉开关柜触头夹紧力检测仪-SMN-B/SMN-C-上海徐吉 | 冷却塔厂家_冷却塔维修_冷却塔改造_凉水塔配件填料公司- 广东康明节能空调有限公司 |