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

Function client

tests/flask/test_oauth2/test_authorization_code_grant.py:20–32  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

18
19@pytest.fixture(autouse=True)
20def client(client, db):
21 client.set_client_metadata(
22 {
23 "redirect_uris": ["https://client.test"],
24 "scope": "profile address",
25 "token_endpoint_auth_method": "client_secret_basic",
26 "response_types": ["code"],
27 "grant_types": ["authorization_code"],
28 }
29 )
30 db.session.add(client)
31 db.session.commit()
32 return client
33
34
35class AuthorizationCodeGrant(CodeGrantMixin, _AuthorizationCodeGrant):

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected