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

Function client

tests/flask/test_oauth2/test_authorization_code_iss_parameter.py:33–45  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected