Commit Graph

88 Commits

Author SHA1 Message Date
Fedorenko Dmitrij
9640ec20d1
Stable cognito user pool (#5194) 2022-06-13 10:14:22 +00:00
Bert Blommers
4a5c72d5ed
AdminInitiateAuth - return correct AccessToken for Refresh-scenario (#5109) 2022-05-09 08:41:29 +00:00
Bert Blommers
1d87b90e75
CognitoIDP: update_group, global_sign_out, update_user_attributes (#5086) 2022-05-01 21:04:57 +00:00
Bert Blommers
8ad121282f
CognitoIDP - improve default UserPool response (#5074) 2022-04-29 10:50:33 +00:00
Bert Blommers
d60df32a25
Upgrade flake8 to 4.x (#5066) 2022-04-27 11:58:59 +00:00
Bert Blommers
10bd677cf2
Admin - enable more Pylint rules (#5037) 2022-04-18 20:44:56 +00:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
mianowski
a4f58f0774
CognitoIdp fixes (#4518) 2022-03-10 13:38:43 -01:00
Sam Bolgert
790b5d5833
Add implementation for cognitoidp admin_set_user_mfa_preference (#4884) 2022-02-24 22:52:45 -01:00
Alastair McCormack
1ab00b48d7
Restrict initiate_auth and admin_initiate_auth AuthFlow (#4836) 2022-02-07 22:55:51 -01:00
Ed
00b10e33a3
Enhancement/cognitoidp add force change password challenge flow (#4740) 2022-01-06 19:34:05 -01:00
Burlutskiy Ivan
398c8af0b2
admin_user_global_sign_out works only once (#4717) 2021-12-27 19:18:02 -01:00
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