canaille-globuzma/tests/oidc/test_bad_flows.py

20 lines
430 B
Python
Raw Normal View History

def test_incomplete_requests(testclient, logged_user, client):
2020-10-26 18:15:53 +00:00
testclient.get(
2021-10-29 12:20:06 +00:00
"/oauth/authorize",
params=dict(
response_type="code",
),
status=400,
2020-10-26 18:15:53 +00:00
)
def test_bad_client(testclient, logged_user, client):
2020-10-26 18:15:53 +00:00
testclient.get(
"/oauth/authorize",
2021-10-29 12:20:06 +00:00
params=dict(
response_type="code",
clienrt_id="nope",
),
2020-10-26 18:15:53 +00:00
status=400,
)