OAUTH basic plugin and redirect url

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

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.

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

2 Likes

Hi there,

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

Cheers, Wurzelseppi

2 Likes

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