(test_client)
| 237 | |
| 238 | |
| 239 | def test_missing_client_id(test_client): |
| 240 | rv = test_client.post("/device_authorize", data={"scope": "profile"}) |
| 241 | assert rv.status_code == 401 |
| 242 | resp = json.loads(rv.data) |
| 243 | assert resp["error"] == "invalid_client" |
| 244 | |
| 245 | |
| 246 | def test_client_secret_basic_saves_authenticated_client_id(test_client, db, client): |