OAuth2 Basic - Legacy replies

I think that I remember needing to add a scope before as well. I think I solved it by embedding it in the URL.

4 Likes

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

1 Like