From b0641272491eb51d321b1b8a7d062e395e70800f Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 19 Dec 2022 16:02:19 +0300 Subject: auth: implement OAuth2 flow. Add code to implement the OAuth2 flow. * Add test fixtures for setting up users and OAuth2 clients * Add tests for token generation with the "Password Grant" flow * Fix some issues with test due to changes in the database connection's row_factory --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 27326ba..377283c 100644 --- a/README.md +++ b/README.md @@ -168,13 +168,17 @@ This expects that the following two configuration variables are set in the appli To run tests: ```bash -pytest +$ export AUTHLIB_INSECURE_TRANSPORT=true +$ export OAUTH2_ACCESS_TOKEN_GENERATOR="tests.unit.auth.test_token.gen_token" +$ pytest ``` To specify unit-tests: ```bash -pytest -k unit_test +$ export AUTHLIB_INSECURE_TRANSPORT=true +$ export OAUTH2_ACCESS_TOKEN_GENERATOR="tests.unit.auth.test_token.gen_token" +$ pytest -k unit_test ``` Running pylint: -- cgit v1.2.3