summaryrefslogtreecommitdiff
path: root/tests/openid/connect
Commit message (Collapse)AuthorAgeFilesLines
* Update pre-configured OIDC server to use OIDC flavor of Refresh Token grant ↵Burke Livingston2022-10-061-0/+32
| | | | | | | | | type (#838) * Modify pre-configured OIDC server to use OIDC Refresh Token grant type * Add test coverage for OIDC refresh token grant type * Use longer variable names
* Move refresh_id_token to validator functionNikos Sklikas2021-06-031-1/+7
|
* Add support for refreshing ID TokensNikos Sklikas2021-06-031-0/+99
|
* failing test for Authorization: BasicAlan Crosswell2021-05-291-0/+26
|
* Properly handle prompt=noneNikos Sklikas2021-05-012-15/+90
|
* Use request.nonce when generating hybrid id tokenTom Evans2021-02-121-0/+9
| | | | | | | | | | Like with the implicit grant, we need to override add_id_token to pass the nonce from the current request to GrantBase.add_id_token in order for the ID token to have the correct nonce. Add test that the nonce is in ID token from hybrid OIDC flow. Fixes: #746
* Sorted tests import per isort 4.3.21Anton Ruhlov2020-04-109-29/+35
|
* Use unittest.mock instead of external mockMichał Górny2020-03-1610-10/+10
| | | | | | 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.
* The future is nowHugo2019-08-1510-19/+0
|
* Upgrade unit tests to use more useful assertsHugo2019-08-155-15/+15
|
* Drop support for legacy Python 2.7Hugo2019-08-151-5/+1
|
* Upgrade Python syntax with pyupgradeHugo2019-08-154-10/+10
|
* Merge branch 'master' into oidc-userinfoJonathan Huot2019-07-041-1/+1
|\
| * Error in timestamp comparisonJonathan Huot2019-07-031-1/+1
| |
* | Add UserInfoEndpoint to the OIDC Provider support.Jonathan Huot2019-05-131-0/+70
|/
* 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
|
* 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.
* Remove usage of "state" for code/token response.Jonathan Huot2019-02-221-1/+0
|
* Fix 652: removed "state" from /token response.Jonathan Huot2019-02-201-6/+10
| | | | | | 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.
* Initial OAuth2.0/PKCE Provider supportJonathan Huot2018-11-294-0/+6
|
* Fix unit tests for new Dispatch attributes namesJonathan Huot2018-11-201-8/+8
|
* Fix OIDC tests (#565)Pieter Ennes2018-09-2111-38/+22
| | | | | | | | | | | | * Unmute ignored OIDC tests. * Fix more import errors. * Remove recently invalidated test for id_token_hint. * Fix tested grants. * Fix import on py27.
* Prefer assertIsInstance(...) over assertTrue(isinstance(...))Jon Dufresne2018-09-141-7/+7
| | | | | | | It is a more explicit assert with a more information message in case of failure. For a full list of available assert methods, see: https://docs.python.org/3/library/unittest.html#assert-methods
* OpenID Connect split (#525)Wiliam Souza2018-06-0511-0/+996
* Add command to clean up builds to makefile * Fix docs strings for endpoints pre_configured * Chnage grant_types.openid_connect to include a deprecation warning be a backward compatible * Fix doc string for rfc6749.request_validator * Remove unused import * Change import to be explicity * Move JWTTokenTestCase to openid.connect.core.test_token * Move JWTToken to oauthlib.openid.connect.core.tokens * Move to openid connect test * Move openid connect exceptions to its own file * Remove openid connect from oauth2 server * Remove JWTToken from oauth tokens * Remove grant_types.openid_connect file * Add oauthlib/openid estructure and tests