วิธีสร้าง API Access Google เพื่อทำให้ phpBB3.1 สามารถ login ผ่าน Google ได้
โดยมีขั้นตอนดังนี้
1. คุณจะต้องมีบัญชี Google Account หากไม่มีสามารถสร้างได้ที่
https://accounts.google.com/SignUp?hl=th
2. ให้ทำการ Login เข้าสู่ Google Account
3. ขั้นตอนการได้มาของ
- 2014-12-11_0-33-09.png (22.72 KiB) Viewed 5130 times
Key:** เพื่อทำการตั้งค่าใน phpBB3.1
Secret:** เพื่อทำการตั้งค่าใน phpBB3.1
เราจะต้องทำการสร้างโดยคลิกที่
https://console.developers.google.com
- จากนั้นให้ทำการสร้าง
project
- 2014-12-11_0-36-00.png (60.75 KiB) Viewed 5130 times
- ระบุชื่อ Project Name :
- เมื่อทำการใส่ ชื่อเเล้ว ให้ทำการคลิกที่ Create
- 2014-12-11_0-38-12.png (31.63 KiB) Viewed 5130 times
- จากนั้นให้ทำการคลิกเข้าไปในส่วนของ Name Project ที่เราสร้างไว้
- 2014-12-11_0-39-19.png (128.67 KiB) Viewed 5130 times
- คลิกเข้าไปในเมนู Credentials -> Create new Client ID เพื่อทำการสร้าง ID
- 2014-12-11_0-40-44.png (97.11 KiB) Viewed 5130 times
- ในส่วนนี้ให้เราทำการเลือกไปที่ Web application
- คลิกที่ Configgure consent screen
- 2014-12-11_0-42-08.png (57.53 KiB) Viewed 5130 times
- ในทำการกรอกรายละเอียดเข้าไป เช่น Email, logo , Product name หลังจากนั้น กด save
- 2014-12-11_0-42-41.png (111.51 KiB) Viewed 5130 times
- กลับไปยังเมนู Credentials -> Create new Client ID เพื่อทำการสร้าง ID
- ในส่วนเเรกให้เลือกที่ Web application
- ส่วนที่ 2 ให้ทำการใช้ชื่อเว็บไซต์
https://www.example.com
- ส่วนที่ 3 เป็น URL สำหรับหน้า Login
- 2014-12-11_0-45-06.png (95.93 KiB) Viewed 5130 times
- หลังจากนั้นให้เราทำการกด Create Client ID จะปรากฏ Client ID เเละ Client secret สำหรับนำไปใส่ในการตั้งค่า phpBB3.1 เเล้วค่ะ
- 2014-12-11_0-46-43.png (40.18 KiB) Viewed 5130 times
กลับมาในส่วนของการตั้งค่าใน phpBB 3.1 โดยเข้าไปที่ Administration Control Panel -> ทั่วไป ->Authentication จะปรากฏส่วนของการตั้งค่า ให้เรานำ Client ID ใส่ลงในช่อง Key เเละ Client secret ใส่ลงในช่อง Secret
- 2014-12-11_0-48-29.png (26.01 KiB) Viewed 5130 times