Integrating Google One Tap for Login in phpBB Forum

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
odf
Registered User
Posts: 177
Joined: Sun Jan 22, 2017 8:55 pm

Integrating Google One Tap for Login in phpBB Forum

Post by odf »

Hello Community,

I'm looking for guidance on where and how to place the following Google One Tap code snippet for logging into a phpBB forum using Google. The snippet is provided at Google's documentation: https://developers.google.com/identity/ ... le-one-tap

<div id="g_id_onload"
data-client_id="YOUR_GOOGLE_CLIENT_ID"
data-login_uri="https://your.domain/your_login_endpoint"
data-your_own_param_1_to_login="any_value"
data-your_own_param_2_to_login="any_value">
</div>

Any tips on the appropriate location for this code within the phpBB template files would be greatly appreciated!

odf

Return to “phpBB Custom Coding”