# OAUTH basic plugin and redirect url

**URL:** https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568
**Category:** SSO
**Tags:** oauth2
**Created:** [March 14, 2019, 10:36am UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568 "2019-03-14T10:36:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [March 14, 2019, 10:36am UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568/1 "2019-03-14T10:36:08Z")

</div>

Hey guys,

how can I configure how discourse generates the redirect url. My problem is that my oauth provider configured this (and can´t change it due to conventions):

https://…/auth/oauth2/realms/root/realms/../authorize?client\_id=…&redirect\_uri=https://…/auth/oauth2/callback&response\_type=code&scope=openid+profile+email&state=..

and my discourse instance generates this:

https://…/auth/oauth2/realms/root/realms/../authorize?client\_id=…&redirect\_uri=https://…/auth/_ **oauth2\_basic** _/callback&response\_type=code&scope=openid+profile+email&state=..

How can I change this ?

Thanks and greetings,

Julian

---

<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: [March 14, 2019, 10:40am UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568/2 "2019-03-14T10:40:39Z")

</div>

The callback URL is not configurable on Discourse. The only way to change it would be to create a copy of the plugin and modify its code.

> [@Wurzelseppi](#):
>
> My problem is that my oauth provider configured this (and can´t change it due to conventions):

This is quite unusual, normally the consumer can define the callback URL

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [March 14, 2019, 11:06am UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568/3 "2019-03-14T11:06:41Z")

</div>

Hi there,

then I’ll have to speak firm words with him 🙂  
Thanks man, I don’t want to change the code of the plugin … wouldn’t make too much sense, would it? ..

Cheers, Wurzelseppi

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [June 1, 2022, 8:42am UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568/7 "2022-06-01T08:42:28Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
