(client, db)
| 18 | |
| 19 | @pytest.fixture(autouse=True) |
| 20 | def 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 | |
| 35 | class AuthorizationCodeGrant(CodeGrantMixin, _AuthorizationCodeGrant): |
nothing calls this directly
no test coverage detected