# OAuth2 Custom Redirects Plugin

**URL:** https://meta.discourse.org/t/oauth2-custom-redirects-plugin/94323
**Category:** Plugin
**Tags:** broken
**Created:** [9 augustus 2018 om 16:17 UTC](https://meta.discourse.org/t/oauth2-custom-redirects-plugin/94323 "2018-08-09T16:17:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![joebuhlig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joebuhlig/32/193054_2.png) [@joebuhlig](https://meta.discourse.org/u/joebuhlig)
#### Post date: [9 augustus 2018 om 16:17 UTC](https://meta.discourse.org/t/oauth2-custom-redirects-plugin/94323/1 "2018-08-09T16:17:37Z")

</div>

Here’s a project that was sponsored by a client recently that extends the [Discourse OAuth2 Basic](https://meta.discourse.org/t/oauth2-basic-support/33879) 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 · GitHub](https://github.com/procourse/discourse-oauth2-custom-redirects-plugin)

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [30 augustus 2023 om 14:27 UTC](https://meta.discourse.org/t/oauth2-custom-redirects-plugin/94323/2 "2023-08-30T14:27:02Z")

</div>

For the record: the official OAuth2 plugin now provides this functionality

> <https://github.com/discourse/discourse-oauth2-basic/blob/2fb2855ffba79146185398d491fb4f01b51d103a/config/settings.yml#L7-L8>

So I think this plugin can probably be considered end-of-life.

The overrides it makes are going to break once we merge [some upcoming core changes](https://github.com/discourse/discourse/pull/23093) into Discourse core, so I’m going to pre-emptively add the #broken tag. Let me know if there are any objections.
