Sure there is something simple that I’m missing here. My latest incantation is to try
url = thinkific_sso_url(payload)
redirect_location = "<!DOCTYPE html><html><head><meta http-equiv=\"Refresh\" content = \"5; url='#{url}'\" /></head><body>This is my body</body></html>"
Rails.logger.info "REDIRECTING... #{redirect_location}"
render plain: redirect_location
If I save the text that is redirect_location to a file and open it in my browser, I get logged in to thinkific and I’m redirected to Discourse. Sadly, the same doesn’t work when I click login in my browser.
Can anyone throw me a bone?