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

Function client

tests/flask/test_oauth2/test_implicit_grant.py:15–27  ·  view source on GitHub ↗
(client, db)

Source from the content-addressed store, hash-verified

13
14@pytest.fixture(autouse=True)
15def client(client, db):
16 client.set_client_metadata(
17 {
18 "redirect_uris": ["https://client.test/authorized"],
19 "scope": "profile",
20 "response_types": ["token"],
21 "grant_types": ["implicit"],
22 "token_endpoint_auth_method": "none",
23 }
24 )
25 db.session.add(client)
26 db.session.commit()
27 return client
28
29
30def test_get_authorize(test_client):

Callers

nothing calls this directly

Calls 1

set_client_metadataMethod · 0.80

Tested by

no test coverage detected