Skip to content

Commit

Permalink
webfinger href must be HTTPS
Browse files Browse the repository at this point in the history
  • Loading branch information
Roland Hedberg committed Sep 16, 2016
1 parent 6f609f2 commit c048544
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_oic_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -422,17 +422,17 @@ def real_test_discover(self):

def test_discover(self):
c = Consumer(None, None)
mfos = MyFakeOICServer("http://localhost:8088")
mfos = MyFakeOICServer("https://localhost:8088")
mfos.keyjar = SRVKEYS
c.http_request = mfos.http_request

principal = "[email protected]"
res = c.discover(principal)
assert res == "http://localhost:8088/"
assert res == "https://localhost:8088/"

def test_provider_config(self):
c = Consumer(None, None)
mfos = MyFakeOICServer("http://example.com")
mfos = MyFakeOICServer("https://example.com")
mfos.keyjar = SRVKEYS
c.http_request = mfos.http_request

Expand All @@ -459,17 +459,17 @@ def test_provider_config(self):
'response_types_supported',
'end_session_endpoint', 'flows_supported'])

assert info["end_session_endpoint"] == "http://example.com/end_session"
assert info["end_session_endpoint"] == "https://example.com/end_session"

def test_client_register(self):
c = Consumer(None, None)

c.application_type = "web"
c.application_name = "My super service"
c.redirect_uris = ["http://example.com/authz"]
c.redirect_uris = ["https://example.com/authz"]
c.contact = ["[email protected]"]

mfos = MyFakeOICServer("http://example.com")
mfos = MyFakeOICServer("https://example.com")
mfos.keyjar = SRVKEYS
c.http_request = mfos.http_request
location = c.discover("[email protected]")
Expand Down

0 comments on commit c048544

Please sign in to comment.