# OAUTH basic plugin and redirect url

**URL:** <https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568>\
**Category:** SSO\
**Tags:** oauth2\
**Created:** [14.Март.2019 10:36:08 UTC](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568 "2019-03-14T10:36:08Z")\
**Posts on this page:** 1\
**Showing post:** 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:** [14.Март.2019 10:36:08 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

---

_[View the full topic](https://meta.discourse.org/t/oauth-basic-plugin-and-redirect-url/111568)._
