I think that I remember needing to add a scope before as well. I think I solved it by embedding it in the URL.
Hi,
I got a problem recently (discourse was working for more than a yearā¦). My custom provider logs show that the RedirectUri sent by Discourse is āhttps://[host]:80/auth/oauth2_basic/callbackāā¦port was not included beforeā¦
Where the port come from? I tried to search in source code, the callback_uri is defined here discourse-oauth2-basic/plugin.rb at ee5bca98f0854362ef5063e7960da426ecbc59fa Ā· discourse/discourse-oauth2-basic Ā· GitHub, but I canāt understand where full_host come fromā¦
Any help welcome. Thanks.
EDIT: I found the full_host definition : omniauth/lib/omniauth/strategy.rb at master Ā· omniauth/omniauth Ā· GitHub but do not understand how I could set the OAuth.config.full_host? Any clues what changed?
I happen to need this feature as well, hereās the PR