作者coldollsheep (加油加油^^)
看板Web_Design
標題[問題] google帳號登入網站 openID導入相關問題
時間Sun Sep 4 18:12:11 2011
各位大大好
最近架了一個小網站
http://www.sheephead.com.tw/game03/apply.php
一時興起 想使用google帳號也可以登入這招
---
查了之後 原來是一門叫做openID的學問
我目前卡在幾個地方 希望大大指點
1. 我網站上有一個google圖像的鈕 請問網址要打甚麼?
2.我有去進行網站註冊
https://www.google.com/accounts/ManageDomains
畫面如下:
http://www.sheephead.com.tw/site/headfirstjavascript/2011-09-04_170937.png
請問我主機上authsub這個資料夾要放甚麼?lib?
3. 好像有分oAuth AuthSub
如果可以,請以AuthSub的方式解釋。
另外提供相關網址
http://blog.yam.com/yeaze813/article/34966394
怎麼都研究不通。大家討論一下吧
--
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.25.166.16
推 elliot79313:你是用Oauth1.0 還是2.0 09/04 18:39
→ elliot79313:tml 09/04 18:41
→ elliot79313:有完整教學 09/04 18:41
→ elliot79313:以你的例子 09/04 18:42
→ elliot79313:你需要做一個php頁面,假設稱作auth.php 09/04 18:42
→ elliot79313:你的網址可能就要填XXX/auth.php 09/04 18:43
→ elliot79313:2/auth/xxxxxxxxxxx 09/04 18:46
→ elliot79313:如果使用者核可,google會送一個queryname為code的資料 09/04 18:47
→ elliot79313:你再把code送一個post給/o/oauth2/token 09/04 18:48
→ elliot79313:就可以得到access_token 09/04 18:48
→ elliot79313:改網站底下有example code 09/04 18:50
→ coldollsheep:...嗯...好好的研究一下你給的東西 謝謝~~! 09/04 23:42