Could someone help explain the new feature to allow auth providers to provide a custom URL? I tried to read through the code but didn’t really understand what was happening. Any insight would be great — thanks!
https://github.com/discourse/discourse/commit/c423ce6333a80304a0aebb1a5a93c1d02770fa17
I believe it’s used in the SAML auth provider if that’s any help to you:
https://github.com/discourse/discourse-saml/blob/172cc6c3094cf78036a782e6c22da70e5c722f34/plugin.rb#L22 https://github.com/discourse/discourse-saml/blob/172cc6c3094cf78036a782e6c22da70e5c722f34/plugin.rb#L124
Should we clarify in the settings copy if this is for saml only @eviltrout?
It’s not a site setting though, that’s an internal field that plugin authors can use to set a custom URL.
As to how to use it, any plugin that creates an omniauth.provider can supply a :custom_url if they like like in the SAML example above.
omniauth.provider
:custom_url