BIA PSU ProfileSync
After a first-time login through Authorizenter, asks the user whether to sync their profile from the Buddhadhamma (พุทธธรรม) platform. On consent, fetches first name, last name, contact, affiliation and user-type data via a server-to-server OAuth2 (client_credentials) call and applies it to the new WordPress user. On decline, the normal Authorizenter flow is preserved.
by BIA PSU · github.com/wachiravit-thitagran/biapsu-profilesync-wpplugin · website
★ 0stars
3release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/wachiravit-thitagran/biapsu-profilesync-wpplugin/releases/download/v0.1.2/biapsu-profilesync.zipFrom the readme
BIA PSU ProfileSync
A WordPress plugin that intercepts the first-time login completed through
Authorizenter and asks
the user whether to sync their profile from the Buddhadhamma (พุทธธรรม)
platform.
ท่านเคยลงทะเบียนแพลตฟอร์มพุทธธรรมแล้ว ต้องการซิงค์ข้อมูลจากแพลตฟอร์มหรือไม่
- Sync → fetch firstname, lastname and other selected fields from the
platform (server-to-server OAuth2) and apply them to the new WordPress user.
- Skip → keep the standard Authorizenter flow and data untouched.
Only new users ever see the prompt.
How it works
| Step | Hook / mechanism | What happens |
|------|------------------|--------------|
| 1. Provision | authorizenteruserprovisioned | New user tagged await; login email stored. |
| 2. Arm at login | authorizenterloginsuccess | Evaluated once: if no required questions remain, arm now (ready); else stay await. |
| 3. Arm after questions | authorizenterquestionscompleted | Fired by Authorizenter when the question form is finished → arm (ready). |
| 4. Gate | templateredirect @ priority 20 | ready users are diverted to the choice page; original destination remembered. Reads our own flag only. |
| 5. Decision | admin-post.php (biapsuprofilesyncdecisio
Read the full README on GitHub →