Gmail Authentication account
Gmail
1.เข้า google developer platfrom: https://console.developers.google.com
2.คลิก Credential > Create Credential > คลิก O Auth Client ID
3.คลิก Web application > กรอก authorized redirect URI: http://oauthservice.net/ac_portal/oauth_callback.html
ปัจจุบันจะบังคับให้ใช้ https
4. Copy Client ID และ Client secret
วิธี Limit ให้ใช้เฉพาะ G suite account LOGIN ได้เท่านั้น
Oauth consent screen -> user type -> Internal
IAM
1.Users > External Aunth Server > Add > Social Media Account > Gmail
2.กรอก App ID และ App secret ที่ได้ Copy ไว้
3. Users > Authentication policy > Add > Aunth method
4.เลือก External authentication server ตามข้อ 2
ในปัจจุบัน (2021) Google ไม่support Callback URL ด้วย http แล้ว ให้ติดต่อ support เพื่อลง Patch บน IAM เพื่อเปลี่ยน callback url เป็น https
หรือ Upgrade เป็น IAG13.0.72 เพื่อให้ callback URL เป็น https
ข้อคิดเห็น
0 ข้อคิดเห็น
โปรด ลงชื่อเข้าใช้ เพื่อแสดงข้อคิดเห็น