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
Ivan Dromigny
8115dd2d1b
Add test
2020-02-05 12:03:33 +01:00
Franz See
db75c9e25c
moto/issues/2670 | Moved population of user attributes from accessToken to idToken
2020-01-15 23:33:09 +08:00
Franz See
a8e1a3bf08
moto/issues/2672 | Formatted using black
2020-01-06 13:29:23 +08:00
Franz See
68d882e6c0
moto/issues/2672 | Modified 'token_use' to return 'id' for an id token, and 'access' for an access token
2020-01-06 00:19:31 +08:00
Fabio Dias
743dd46399
black linting
2019-12-16 21:25:20 -05:00
Fabio Dias
fd9ac4b9a5
ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override
2019-12-16 21:05:29 -05:00
Fabio Dias
b83a750630
Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id
2019-12-16 19:56:11 -05:00
Asher Foa
96e5b1993d
Run black on moto & test directories.
2019-10-31 10:36:05 -07:00
brodie.gallinger
ec99a6b827
Existing user now raises a UsernameExistsException
...
If a user is attempted to be added to a pool that already contains a user with that username, the UsernameExistsException is thrown, to match AWS behaviour.
2019-08-06 13:51:00 -03:00
Carlos Aguado
81980850d4
Implement update_user_pool_domain
...
Introduce the CognitoIDP's UpdateUserPoolDomain to update configuration
options of the associated domain to a Cognito IDP (e.g. ACM certificate).
2019-07-16 13:09:13 +10:00
Jordan
1de9acb7ad
Add cognito-idp admin_update_user_attributes #2184 ( #2185 )
2019-05-20 23:58:10 +01:00
Robert Jensen
9ed80f14e8
fix coverage, update IMPLEMENTATION_COVERAGE
2019-03-12 17:52:34 -04:00
Robert C Jensen
73bd3e1c77
[cognitoidp] feat: add update_identity_provider
2019-01-24 20:39:55 -05:00
Steve Pulec
a62f15b537
Merge pull request #1730 from garyd203/cognitoidp-groups
...
Implement groups for cognito-idp
2018-12-28 19:53:53 -05:00
George Alton
aa4be6fcad
Adds limiting/pagination to cognitoidp list_* functions
2018-10-24 15:56:20 +01:00
George Alton
2d2708cfd7
Missing users now raise a UserNotFoundException
...
A missing user in a cognito user pool has raises a UserNotFoundException,
not a ResourceNotFoundException. This commit corrects the behaviour so
that the correct exception is raised
2018-10-17 18:39:52 +01:00
Gary Donovan
1b42c7bf7a
Be able to change enabled
status for cognito-idp users
2018-10-17 11:28:24 +11:00
Gary Donovan
ffa7560d02
Implement user-group relationships for cognito-idp
2018-10-17 11:19:33 +11:00
Gary Donovan
04fdd5617a
Implement group management for cognito-idp
2018-10-17 11:19:33 +11:00
Steve Pulec
7b9bb15d28
Merge pull request #1756 from ferruvich/add_extra_attributes_in_token_payload
...
Add extra attributes in token payload
2018-10-15 01:02:07 -04:00
George Alton
d9577f9d3d
Ensures a UserPool Id starts like {region}_
2018-10-08 19:04:47 +01:00
Ferruvich
da76ea633b
Removed redundand line
2018-09-28 16:31:57 +02:00
Ferruvich
e69d2834e8
Removing failing test in order to check coverage and Travis test
2018-09-28 16:26:03 +02:00
Ferruvich
9adb7c818d
Added extra test
2018-09-28 16:26:03 +02:00
Ferruvich
ab8f4dd159
Testing new feature
2018-09-28 16:26:03 +02:00
jbergknoff-10e
e111cd1ff9
Implement some of cognito-idp
2018-05-07 09:38:04 -05:00