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

Function client

tests/flask/test_oauth2/test_device_code_grant.py:102–113  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

100
101@pytest.fixture(autouse=True)
102def client(client, db):
103 client.set_client_metadata(
104 {
105 "redirect_uris": ["https://client.test/authorized"],
106 "scope": "profile",
107 "grant_types": [DeviceCodeGrant.GRANT_TYPE],
108 "token_endpoint_auth_method": "none",
109 }
110 )
111 db.session.add(client)
112 db.session.commit()
113 return client
114
115
116def test_invalid_request(test_client):

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected