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

Function client

tests/flask/test_oauth2/test_openid_code_grant.py:30–41  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

28
29@pytest.fixture(autouse=True)
30def client(client, db):
31 client.set_client_metadata(
32 {
33 "redirect_uris": ["https://client.test"],
34 "scope": "openid profile address",
35 "response_types": ["code"],
36 "grant_types": ["authorization_code"],
37 }
38 )
39 db.session.add(client)
40 db.session.commit()
41 return client
42
43
44@pytest.fixture(autouse=True)

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected