summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* OAuth 1.0a signature methods: RSA-SHA256, RSA-SHA512 and HMAC-SHA512 (#723)Hoylen Sue2020-06-031-319/+826
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adding support for RSA-SHA256. * Added support for HMAC-SHA512, RSA-SHA256 and RSA-SHA512 signature methods. * Made version dependencies consistent. * Updated OAuth1 signature tests. * Fixed parsing of netloc/host. Deprecated old functions. * Refactored and expanded tests to include signature validate. * Update docs for HMAC-SHA512, RSA-SHA256 and RSA-SHA512 signature methods. * Updated code comments in oauth1 signatures module. * Updated changelog. * Update docs/feature_matrix.rst Co-Authored-By: Omer Katz <omer.drow@gmail.com> * Used parenthesis instead of backslash to break lines. * Fixed typo Co-authored-by: Omer Katz <omer.drow@gmail.com> Co-authored-by: Omer Katz <omer.drow@gmail.com>
* Sorted tests import per isort 4.3.21Anton Ruhlov2020-04-1047-164/+160
|
* Use unittest.mock instead of external mockMichał Górny2020-03-1637-37/+37
| | | | | | Replace the use of external 'mock' package with built-in Python unittest.mock (present since py3.3). This also fixes all test failures for me.
* Merge branch 'master' into rm-2.7Omer Katz2019-08-291-68/+87
|\
| * remove unneeded additional collect_parameters assertion in the ↵Ashley Sommer2019-08-191-1/+0
| | | | | | | | signature_base_string test. Fixes python 2.7 test failure.
| * Fix tests for OAuth1 signature basestring generation, to better align with ↵Ashley Sommer2019-08-141-68/+88
| | | | | | | | | | | | examples and expected results set out in the RFC doc. Fixes https://github.com/oauthlib/oauthlib/issues/695
* | The future is nowHugo2019-08-1548-96/+0
| |
* | Upgrade unit tests to use more useful assertsHugo2019-08-158-24/+24
| |
* | Drop support for legacy Python 2.7Hugo2019-08-155-23/+5
| |
* | Upgrade Python syntax with pyupgradeHugo2019-08-159-22/+22
| |
* | Drop support for legacy Python 2.7Hugo2019-08-156-57/+41
|/
* Merge branch 'master' into oidc-userinfoJonathan Huot2019-07-046-6/+139
|\
| * Merge branch 'master' into 672-fix-null-expires-inJosh Holmer2019-07-031-1/+1
| |\
| | * Error in timestamp comparisonJonathan Huot2019-07-031-1/+1
| | |
| * | Merge branch 'master' into 672-fix-null-expires-inOmer Katz2019-06-2910-12/+319
| |\ \ | | |/
| | * Check for authorization response errorsMark Gregson2019-06-061-3/+6
| | |
| | * Enforce POST HTTP method on TokenEndpoint, IntrospectEndpoint and ↵Abhishek Patel2019-05-144-19/+79
| | | | | | | | | | | | | | | | | | | | | | | | RevocationEndpoint - Add validation checks for HTTP method in TokenEndpoint, IntrospectEndpoint and RevocationEndpoint. - CHANGE DEFAULT HTTP method for TokenEndpoint from 'GET' to 'POST'. - Add tests + Fix an old test in . It used to send query params to TokenEndpoint which is not allowed anymore. Fixed it so payload is sent as POST body.
| | * Ban all query parameters on Intropspection, Token and Revocation endpopointAbhishek Patel2019-05-143-18/+11
| | |
| | * Add tests + create a global variable for blacklisted query parametersAbhishek Patel2019-05-143-0/+59
| | |
| * | Handle null value in expires_in field in JSON handlerJosh Holmer2019-04-301-0/+18
| | | | | | | | | | | | Closes #672
* | | Add UserInfoEndpoint to the OIDC Provider support.Jonathan Huot2019-05-131-0/+70
| |/ |/|
* | Merge branch 'master' into 670-pkce-requestinfoJonathan Huot2019-05-074-5/+195
|\ \
| * \ Merge branch 'master' into patch-1Jonathan Huot2019-05-073-3/+118
| |\ \
| | * \ Merge branch 'master' into oidc-hashesoidc-hashesJonathan Huot2019-05-061-1/+12
| | |\ \
| | | * | Add case-insensitive headers to oauth1 BaseEndpointJordan Gardner2019-05-011-1/+12
| | | |/
| | * | Merge branch 'master' into oidc-hashesJonathan Huot2019-04-262-0/+19
| | |\ \ | | | |/
| | * | Python2.7 compatibleJonathan Huot2019-03-261-2/+2
| | | |
| | * | Add unittests for OIDC GrantTypeBase.Jonathan Huot2019-03-261-0/+104
| | | | | | | | | | | | | | | | Rename hash_id_token into id_token_hash
| | * | Renamed fill into finalize to add clarityJonathan Huot2019-03-261-2/+2
| | | |
| * | | Add valid testcaseY.Umezaki2019-05-071-0/+28
| | | |
| * | | Add token tests from #491Y.Umezaki2019-05-071-2/+49
| | |/ | |/|
* | | Fix 670. AuthCode API must return the new PKCE attribute670-pkce-requestinfoJonathan Huot2019-04-261-2/+4
|/ /
* | Add method to get/set debug flagAbhishek Patel2019-04-212-0/+19
|/ | | | | | - By default debug mode is always off - Debug mode turned on automatically for tests - Complete requests sanitized in non debug mode
* Fixed missing references in unittestsJonathan Huot2019-02-283-5/+5
|
* Added missing import after test movedJonathan Huot2019-02-251-2/+5
|
* Move HybridGrant test into its respective file.Jonathan Huot2019-02-252-75/+76
|
* Add nonce mandatory check for "id_token" response_typeJonathan Huot2019-02-251-0/+21
|
* Add nonce auth request check for authorization_codeJonathan Huot2019-02-251-0/+14
|
* OIDC: Raise error=invalid_request when nonce is mandatoryJonathan Huot2019-02-251-7/+53
| | | | Until now, only OIDC implicit was raising an error, but OIDC hybrid contain a couple of mandatory nonce, too.
* Merge branch 'master' into fix-uri-normalizationJonathan Huot2019-02-251-1/+0
|\
| * Remove usage of "state" for code/token response.Jonathan Huot2019-02-221-1/+0
| |
* | Renamed construct_base_string to signature_base_string.Hoylen Sue2019-02-221-6/+6
| |
* | Merge branch 'master' into fix-uri-normalizationJonathan Huot2019-02-213-31/+39
|\ \ | |/
| * Removed useless set_state internal functionJonathan Huot2019-02-211-7/+1
| | | | | | | | Does not have purpose for /token request
| * Add authorization "state" preservation back for AuthCodeJonathan Huot2019-02-211-0/+7
| |
| * Fix 652: removed "state" from /token response.Jonathan Huot2019-02-203-30/+37
| | | | | | | | | | | | Fix OIDC /token flow where &state=None was always returned, and fix OAuth2.0 /token flow where &state=foobar was returned if &state=foobar was present in the token request. Remove "save_token" from create_token() signature cuz it was not used internally. Deprecated the option to let upstream libraries have a chance to remove it, if ever used.
* | Fixed space encoding in base string URI used in the signature base string.Hoylen Sue2019-02-191-8/+19
|/
* Fix 644, Add tests for BasicAuth credentials for all endpoints (#645)Jonathan Huot2019-01-112-2/+57
| | | Test Introspect, Revoke, Token (web, legacy, backend) endpoints with authenticate_client and HTTP Basic Auth.
* Fix invalid escape sequence in tests (#637)Jon Dufresne2018-12-271-1/+1
| | | | | | | | | Fixes warning when running tests: ``` tests/oauth1/rfc5849/endpoints/test_base.py:63 oauthlib/tests/oauth1/rfc5849/endpoints/test_base.py:63: DeprecationWarning: invalid escape sequence \d headers['Authorization'] = sub('timestamp="\d*k?"', ```
* Fix issue when using Metadata Endpoint with OIDC PreConfigured server.Jonathan Huot2018-12-141-0/+27
|