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

Function test_invalid_client

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

Source from the content-addressed store, hash-verified

172
173
174def test_invalid_client(test_client):
175 rv = test_client.post(
176 "/oauth/token",
177 data={
178 "grant_type": DeviceCodeGrant.GRANT_TYPE,
179 "device_code": "invalid-client",
180 "client_id": "invalid",
181 },
182 )
183 resp = json.loads(rv.data)
184 assert resp["error"] == "invalid_client"
185
186
187def test_expired_token(test_client):

Callers

nothing calls this directly

Calls 1

postMethod · 0.80

Tested by

no test coverage detected