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

Function client

tests/flask/test_oauth2/test_code_challenge.py:36–48  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

34
35@pytest.fixture(autouse=True)
36def client(client, db):
37 client.set_client_metadata(
38 {
39 "redirect_uris": ["https://client.test"],
40 "scope": "profile address",
41 "token_endpoint_auth_method": "none",
42 "response_types": ["code"],
43 "grant_types": ["authorization_code"],
44 }
45 )
46 db.session.add(client)
47 db.session.commit()
48 return client
49
50
51def test_missing_code_challenge(test_client):

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected