# Discourse OpenID Connect (OIDC)

**URL:** <https://meta.discourse.org/t/discourse-openid-connect-oidc/103632>\
**Category:** Plugin\
**Tags:** official, openid-connect, auth-plugins, included-in-core\
**Created:** [December 6, 2018, 4:08pm UTC](https://meta.discourse.org/t/discourse-openid-connect-oidc/103632 "2018-12-06T16:08:20Z")\
**Posts on this page:** 1\
**Showing post:** 312

<div class="post-metadata">

**Author:** ![zabin](https://avatars.discourse-cdn.com/v4/letter/z/58f4c7/32.png) [@zabin](https://meta.discourse.org/u/zabin)\
**Post date:** [March 5, 2025, 7:57pm UTC](https://meta.discourse.org/t/discourse-openid-connect-oidc/103632/312 "2025-03-05T19:57:33Z")

</div>

Hi there.  
I added this plugin and it works fine. The problem I see is, our discourse app has aliases, so I can login with 2 urls. Both have been configured in Azure with proper callback urls. I noticed that, the call to [https://discourse.company.com/auth/oidc](https://discourse.company.com/auth/oidc) is returning the Location URL with the alias URL, like [https://login-blah-bla/authorize?client\_id=&redirect\_uri=https%3A%2F%[2Fdiscourse.us.company.com](http://2fdiscourse.us.company.com/)%2Fauth%2Foidc%2Fcallback](https://login-blah-bla/authorize?client_id=&redirect_uri=https%3A%2F%25%5B2Fdiscourse.us.company.com%5D(http://2fdiscourse.us.company.com/)%2Fauth%2Foidc%2Fcallback).  
Shouldn’t it respect the originated url?

There is an `openid_connect_error_redirects` but that I believe is for in case of errors. Any idea how I can change the redirect to the authority(aka [discourse.company.com](http://discourse.company.com/)).

---

_[View the full topic](https://meta.discourse.org/t/discourse-openid-connect-oidc/103632)._
