Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJonne Haß <me@jhass.eu>2020-10-24 23:30:43 +0300
committerJonne Haß <me@jhass.eu>2020-10-24 23:30:43 +0300
commit0aba20f85c420cb13ca5b9fcebf0408c29e0c6d0 (patch)
tree69f966d3d81ae59f48ad242f4ed830faf02e6c48 /spec
parentd27cd175dfed6b7cf758d88c2ba91a787d166452 (diff)
OpenID Connect: ensure consistent issuer URL
root_url does not know the right protocol in all contexts, some clients are strict when validating this.
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/api/openid_connect/discovery_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/api/openid_connect/discovery_controller_spec.rb b/spec/controllers/api/openid_connect/discovery_controller_spec.rb
index a67463f9d..ad74e1d68 100644
--- a/spec/controllers/api/openid_connect/discovery_controller_spec.rb
+++ b/spec/controllers/api/openid_connect/discovery_controller_spec.rb
@@ -8,7 +8,7 @@ describe Api::OpenidConnect::DiscoveryController, type: :controller do
it "should have the issuer as the root url" do
json_body = JSON.parse(response.body)
- expect(json_body["issuer"]).to eq(root_url)
+ expect(json_body["issuer"]).to eq(AppConfig.environment.url)
end
it "should have the appropriate user info endpoint" do