-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roland Hedberg
committed
Sep 16, 2016
1 parent
6f609f2
commit c048544
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
@@ -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]") | ||
|