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 https://github.com/discourse/discourse-oauth2-basic/blob/ee5bca98f0854362ef5063e7960da426ecbc59fa/plugin.rb, but I canāt understand where full_host come fromā¦
Any help welcome. Thanks.
EDIT: I found the full_host definition : https://github.com/omniauth/omniauth/blob/master/lib/omniauth/strategy.rb#L418 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