MCPcopy Create free account
hub / github.com/authlib/authlib / test_missing_client_id

Function test_missing_client_id

tests/flask/test_oauth2/test_device_code_grant.py:239–243  ·  view source on GitHub ↗
(test_client)

Source from the content-addressed store, hash-verified

237
238
239def 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
246def test_client_secret_basic_saves_authenticated_client_id(test_client, db, client):

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected