lib/osso/models/identity_provider.rb in osso-0.0.3.21 vs lib/osso/models/identity_provider.rb in osso-0.0.3.22
- old
+ new
@@ -40,10 +40,12 @@
self.status = 'CONFIGURED' if sso_url && sso_cert
end
def root_url
- ENV['HEROKU_APP_NAME'] || ENV.fetch('BASE_URL')
+ return "https://${ENV['HEROKU_APP_NAME]}.herokuapp.com" if ENV['HEROKU_APP_NAME']
+
+ ENV.fetch('BASE_URL')
end
end
end
end