I would be interested in working on this if it’s still required.
Hopefully this is slightly less of a draw-out and traumatic experience as compared to my last foray into the world of Discourse and OAuth2: GitHub - LeoMcA/discourse-webmaker-id: Discourse plugin which adds Webmaker authentication · GitHub