OAuth2 Custom Redirects Plugin

Here’s a project that was sponsored by a client recently that extends the Discourse OAuth2 Basic plugin.

The issue we were up against was that the Log In URL and the Sign Up URL each needed to be different, whereas the base plugin uses the same authorization URL for both. All this plugin does is add a setting ('oauth2_signup_url`) and uses that URL for the Sign Up button, which allows both buttons to go to different places.

Repo: GitHub - procourse/discourse-oauth2-custom-redirects-plugin

4 лайка

Для протокола: официальный плагин OAuth2 теперь предоставляет эту функциональность. discourse-oauth2-basic/config/settings.yml at 2fb2855ffba79146185398d491fb4f01b51d103a · discourse/discourse-oauth2-basic · GitHub Поэтому я считаю, что этот плагин, вероятно, можно считать устаревшим. Внесенные им переопределения перестанут работать, как только мы объединим некоторые предстоящие изменения в ядре с ядром Discourse, поэтому я заранее добавлю тег broken. Дайте знать, если есть какие-либо возражения.

3 лайка