OAUTH basic plugin and redirect url


#1

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


(David Taylor) #2

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


#3

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