William Crum
96bdba883b
Adding functionality for cognito:groups in access_token ( #4592 )
2021-11-18 10:03:35 -01:00
Dominik Schubert
f717e494d3
Core - Use json module for error_json exception type rendering instead of jinja2 ( #4587 )
2021-11-17 15:19:03 -01:00
Bert Blommers
b9e38ecc76
CognitoIDP:list_users() - Implement AttributesToGet-parameter ( #4539 )
2021-11-07 15:02:48 -01:00
Łukasz
56866e0ef5
Add add_custom_attributes implementation ( #4498 )
2021-10-30 09:58:29 +00:00
Łukasz
07e8ba48ba
cognito-idp standard attributes and pool schema validation ( #4493 )
2021-10-29 11:25:52 +00:00
Maksymilian Babarowski
7a1c38e11a
cognito-idp – Implemented admin_delete_user_attributes ( #4487 )
2021-10-28 21:21:22 +00:00
Łukasz
ec7c2d6d5d
Return OTP from forgot password ( #4478 )
2021-10-27 18:29:29 +00:00
Maksymilian Babarowski
98ca9b82e1
cognito-idp – Correct exception when user does not exist ( #4482 )
2021-10-27 10:43:37 +00:00
Łukasz
fee16cb388
Added significant verification to ForgotPassword, changed UserStatus dict to enum ( #4469 )
2021-10-24 14:26:57 +00:00
Łukasz
a4a8949166
CognitoIDP github.com/spulec/moto/issues/4452 - missing EstimatedNumberOfUsers ( #4470 )
2021-10-24 13:29:16 +00:00
Maksymilian Babarowski
ce91a8d615
cognito-idp – Implemented admin_confirm_sign_up ( #4462 ) ( #4463 )
2021-10-23 11:32:56 +00:00
Leo Thomas
46131e0340
Userpool UsernameAttributes ( #4262 )
2021-10-20 11:56:45 +00:00
Maksymilian Babarowski
a192a42e8f
cognito-idp – Correct exception message when user pool not found ( #4434 ) ( #4436 )
2021-10-19 13:05:31 +00:00
Maksymilian Babarowski
cc5a5c3d72
cognito-idp – Implemented update_user_pool ( #4433 ) ( #4435 )
2021-10-19 09:18:52 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules ( #4432 )
2021-10-18 19:44:29 +00:00
Łukasz
230e34748f
Added admin_reset_user_password implementation ( #4412 )
2021-10-14 10:12:08 +00:00
Maksymilian Babarowski
4d10b11ecb
cognito-idp – Do not allow custom attributes in list_users() Filter param ( #4389 ) ( #4407 )
2021-10-13 09:55:58 +00:00
Maksymilian Babarowski
c60fb068e1
cognito-idp – Added format validation and implemented prefix operator for Filter param of list_users ( #4388 )
2021-10-11 22:31:40 +00:00
Bartosz Sledz
b3fe48ece0
Add support for USER_PASSWORD_AUTH auth method (cognito-idp) ( #4164 )
...
Co-authored-by: Bartosz Sledz <bartosz.sledz@hitachivantara.com>
2021-08-12 09:19:54 +01:00
Bert Blommers
bc369679f2
Update test_cognitoidp.py
2021-08-03 16:54:31 +01:00
Łukasz
33988b96c2
fix for 'status' filter, inherent_attributes test ( #4129 )
...
Co-authored-by: Łukasz Nowak <lukasz.nowak@idemia.com>
2021-08-03 16:34:07 +01:00
Łukasz
16a4db1ce5
cognito:user_status filter in list users ( #4120 )
...
Co-authored-by: Łukasz Nowak <lukasz.nowak@idemia.com>
2021-08-03 07:56:41 +01:00
andyfase
0f8da52196
Add support for admin_user_global_sign_out to cognitoidp ( #4092 )
...
* Add support for admin_user_global_sign_out to cognitoidp
2021-07-27 18:49:19 +01:00
Alastair McCormack
cb53f86c24
fix: cognito-idp: admin_create_user remove default attributes ( #4070 )
...
* 4069: fix: cognito-idp: admin_create_user remove default attributes
2021-07-14 15:35:09 +01:00
Bert Blommers
2590bf0e80
CognitoIDP: get_user ( #4038 )
...
* cognito-idp get_user support
* add carium expected attributes
* CognitoIDP#get_user - Add negative tests
Co-authored-by: Lalitha Kolla <lalitha.kolla@carium.com>
2021-06-27 15:48:31 +01:00
George-lewis
f76571199f
Implement User Pool MFA Actions ( #3903 )
...
* implement user pool mfa actions
* Add messages to errors
Add messages to errors
Fix error message
* Change exception type
* fix validation & add more tests
Co-authored-by: George Lewis <glewis@evertz.com>
2021-05-06 17:59:04 +01:00
Sawyer Hollenshead
b9f83c200f
Cognito IdP: Raise UsernameExistsException from sign_up when user exists ( #3765 )
...
* Raise UsernameExistsException from sign_up when user exists
* Run formatter
* Use pytest.raises
* Fix test
2021-03-16 22:22:53 +00:00
Gordon Forsythe
d07e287b37
pool domain should always return a domain ( #3707 )
...
* pool domain should always return a domain
Refs https://github.com/spulec/moto/issues/3706
* set character encoding
* test CloudFrontDomain exists on pool domain
* describe pool domain does not return cloudfront domain
2021-02-18 17:10:52 +00:00
Robin Wilkins
a31599d000
Support cognito admin user password auth flow ( #3547 )
...
Applies the user credentials pattern from the ADMIN_NO_SRP_AUTH flow
to the ADMIN_USER_PASSWORD_AUTH auth flow for Cognito admin_initiate_auth
requests.
Co-authored-by: Robin Wilkins <r.wilkins@waracle.com>
2020-12-15 07:48:52 +00:00
Antonin
c5d0aa0c10
fix SALT and SRP_B params
2020-12-03 11:42:10 +01:00
Brian Pandola
93b393c679
Fix: Python 2/3 Incompatibility ( #3488 )
...
Previous code would raise `TypeError: 'dict_keys' object is not subscriptable`
when run under Python 3.
* Re-write code in Python 2/3 compatible way.
* Add clarifying comment.
* Add test coverage.
Supersedes #3227
2020-11-21 13:36:33 +00:00
Bert Blommers
273ca63d59
Linting
2020-11-11 15:55:37 +00:00
Matěj Cepl
5697ff87a8
Back to Black
2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c
Finish porting from nose to pytest.
2020-11-10 08:25:05 +01:00
Matěj Cepl
77dc60ea97
Port test suite from nose to pytest.
...
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
ayushbhawsar
2e0e542efe
added cognito idp function admin_set_user_password to the code ( #3328 )
...
* added cognito idp function to the code
* fixed linting issues
2020-09-21 18:40:07 +01:00
Guy Moses
7ce1e87477
[fix] cognito-idp list_users Filter arg now support spaces ( #3317 )
2020-09-19 11:26:01 +01:00
xsphrx
236ab59afe
added cognito-idp initiate_auth and PASSWORD_VERIFIER challenge to respond_to_auth_challenge ( #3260 )
...
* added cognito-idp initiate_auth and PASSWORD_VERIFIER challenge to respond_to_auth_challenge
* fixed for python2
* added mfa, REFRESH_TOKEN to initiate_auth, SOFTWARE_TOKEN_MFA to respond_to_auth_challenge
* added negative tests
* test
2020-09-01 09:20:31 +01:00
Koichi Ogura
448ff45174
fix cognito-idp UserPool ClientId ( #3165 )
...
* fix cognito-idp UserPool ClientId
* add test
* replace uuid4 to create_id
2020-07-22 14:08:17 +01:00
cm-iwata
fdeee07762
Add basic implement for cognito-idp create_resource_server ( #3153 )
...
* Add basic implement for cognito-idp create_resource_server
* lint
2020-07-20 12:31:30 +01:00
Koichi Ogura
3e2a5e7ee8
fix #3133 Cognito Identity Provider : create_user_pool_client GenerateSecret=True
doesn't work ( #3135 )
...
* fix #3133 Cognito Identity Provider : create_user_pool_client
`GenerateSecret=True` doesn't work
* add test for update_user_pool_client
2020-07-16 09:13:12 +01:00
Steve Pulec
f061fbf6b9
Merge pull request #3081 from bblommers/cognitoidp_return_kid_header
...
CognitoIDP: Return kid header as part of respond_to_auth_challenge
2020-07-03 20:51:34 -05:00
Bert Blommers
8ff32bf4fa
Append region-info to UserAgent-header, if it already exists
2020-06-30 15:00:08 +01:00
Bert Blommers
f27e29e04d
Cognito - Dont run test in ServerMode
2020-06-20 12:48:10 +01:00
Bert Blommers
655b92a2a4
Simplify Cognito test - auto decode JSON
2020-06-20 11:05:06 +01:00
Bert Blommers
dd556a66c6
CognitoIDP - Return KID in headers of ID token
2020-06-20 10:43:02 +01:00
Bert Blommers
100dbd529f
Merge pull request #2742 from xnegativx/master
...
MessageAction for cognito admin_create_user is now handled
2020-02-18 13:41:02 +00:00
Jon Beilke
92fc39d7bb
add Arn to cognito user pool model and response
2020-02-17 15:08:09 -06:00
Antonin
fa3904df29
MessageAction for cognito admin_create_user is now handled
...
If an invitation is attempted to be reset to a pool we validate that the user is indeed already in the pool else we raise a UserNotFoundException to match AWS behaviour
2020-02-10 18:09:15 +01:00
Ivan Dromigny
d8d057711d
Change from black linter
2020-02-05 14:19:08 +01:00