2022-05-19 10:36:39 +00:00
|
|
|
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
|
|
|
)
|
|
|
|
|
|
|
|
|
2022-05-19 10:36:39 +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,
|
|
|
|
)
|