-
fix: confirmPassword returns response rather than always true
-
feat: email OTP MFA support
-
bumped: flutter_lints from 4.0.0 to 5.0.0
-
feat: upgraded associateSoftwareToken and verifySoftwareToken to use AssociateSoftwareToken with either an access token or a session string
-
bumped: flutter_lints from 3.0.2 to 4.0.0
- added: ClientMetaData to a parameter of respondToAuthChallenge
- added: optional Refresh Token revocation on sign-out
- added: secret hash in SMS MFA
- bumped: js from 0.6.7 to 0.7.0
- fixed: username assignment during _authenticateUserDefaultAuth in CognitoUser
- http dependency includes older 0.13.1 version as valid
- added: additional support for mfa functionalities
- http dependency includes older 0.13.1 version as valid
- dependencies are updated to the latest
- fixed: SocketException when network is disabled
- changed: a specific exception
CognitoUserDeviceConfirmationNecessaryException
that can be handled whenever an users device needs confirmation is separated fromCognitoUserConfirmationNecessaryException
- added: better handling of unverified phone numbers using sms mfa
- added: allow CUSTOM_AUTH authentication flow via SRP password verification
- fixed: CognitoUser.getSession throws TypeError when storage returns null for clockDrift
- feat: try to refresh session if access token is null
- fixed: clientSecret instead of client secret hash in refresh session
- added: secret hash to sendNewPasswordRequired function
- added: Regen SECRET_HASH using the srp username
- breaking: confirmRegistration forceAliasCreation parameter as named
- added: confirmRegistration clientMetadata parameter
- fixes: SECRET_HASH parameter in
CognitoUser
refreshSession()
- adds: optional clientMetadata (Map<string,string>) to signup
- fixed: unexpected nullref during "initiateAuth" (authParameters is optional parameter in AuthenticationDetails)
- changed: SocketException detecting via pattern (removed dart:io dependency)
- added: flutter_test dev dependency
- added: flutter sdk dependency
- added: flutter dependency
- implement js BigInt workaround to speed up authenticateUser on flutter web
- deprecated pedantic replaced with flutter_lints + code style
- Changed: exports client.dart to facilitate using injection for automated testing
- Changed: SigV4Request headers is case insensitive
- Removed: Temporary workaround to BigInt.modPow
- Changed: challengeName as nullable variable
- Storage initialization fixes
- Nullsafety branch is merged with latest non-nullsafety changes
- Fixed: a storage key issue
- Fixed: broken lastAuthUser lookup in CognitoUser
- Fixed: a storage key issue
- Defined a local variable
srp_username
, in order to not overrideuser
value
- Fixed: example
- Fixed: Retrieving data from Storage as
FutureOr<String?>
breaks clients - Define
shared_preferences
as actual dependency, remove private file.flutter-plugins-dependencies
and change code to work with latesthttp
- Fixed: http.post Uri argument
- Added optional validationData parameter for
sendCustomChallengeAnswer
- Fixed: http.post
- Initial null safety
- Added optional validationData parameter for
sendCustomChallengeAnswer
- Example update: check for InvalidPasswordException in signup screen
- [Issue #69] Solving "type '_InternalLinkedHashMap<String, String>' is not a subtype of type 'String' of 'value'" bug when ParamsDecorator receives a Map<String, String>.
- [Issue #103] Set confirmed to true when email or phone_number is verified
- [Issue #88] Update example to latest version of Flutter for iOS, Android and Web. Uses AndroidX now which solves this issue
- [Issue #81] Enable login for Flutter Web by upgrading shared_preferences dependency version
- Separate example into individual files, for easier re-use / copy and paste
- Add a lib/secrets.dart file to hold the aws secrets. That file is added to .gitignore
- Add quick start instructions in readme for compiling example. Does not include how to setup resources in AWS, but that is a pre-requiste the example working.
- Migrate from depricated RaisedButton to ElevatedButton in example
- [Issue #69] Adding await in the call to analyticsMetadataParamsDecorator in case some implementations need to include async modifier
- [Issue #69] Propagating analyticsMetadataParamsDecorator to CognitoUser from CognitoUserPool
- [Issue #69] Adding support for AnalyticsMetadata request parameter
- failed AWS request with specific character
- removed:
getLargeAValue
call onAuthenticationHelper
initialization
- added: additional getters for CognitoJwtToken
- added: SecretHash to ConfirmSignUp/ResendConfirmationCode request parameters
- added: clear the cached clockDriftKey
- added: Using an app client secret with '_authenticateUserPlainUsernamePassword'
- fixed: CognitoUser.getCachedDeviceKeyAndPassword as a Future
- removed flutter_test dev dependency
- added: CognitoUser.getDeviceKey method
- added documentation for client secret
- changed: CognitoUser.updateAttributes and CognitoUser.deleteAttributes return Future
- added: CognitoUser.getMFAOptions method
- fix: type list is not a subtype of type list
- fix: getUserAttributes strict casting issue
- fix: type 'List' is not a subtype of type 'List'
- allowed session to be passed to CognitoUser constructor and added federated sign in example to README
- added guest auth support
- code clearing
- cleanup for pedantic v1.9.0 lints
- fix: correct decoding application/json utf8 response
- user confirmation error rethrow
- added support for Cognito CUSTOM_AUTH flows with client secrets
- exposed IdentityId in cognito_credentials to upload to S3 user folder
- fixed salt with a negative sign in front of it
- added authenticator param to getAwsCredentials function to authenticate with third-party authentication method (e.g. Facebook, Google)
- removed keyword 'new' from the code
- readme update
- added client secret support that is missing since original JS SDK
- fixed the bug that made DEVICE_PASSWORD_VERIFIER for remembered device fail
- fixed a custom authentication flow serialization issue (authParameters is an object, not an array)
- fixed wrong behaviour with Get Requests
- readme update, code formatting
- response to the NEW_PASSWORD_REQUIRED challenge
- sign Up custom validationData reverted to List
- fixed link to repo
- fixed Sign Up custom validationData
- added custom Authorization header option
- minor changes (description, formatting)
- forked from unsupported https://github.com/jonsaw/amazon-cognito-identity-dart/tree/master
- fixed custom validationData
- Fix empty canonical query string generation
- Convert SigV4 methods to static
- Expose SigV4Client generated values
- Upgrade test dependencies
- Add missing request
await
s
invalidateToken()
to invalidate existing user session- CognitoClientException
toString
with error details
- Better client request exception handling
- Fix Example App cached Identity Id
- Add
removeIdentityId()
to CognitoIdentityId - Add
resetAwsCredentials()
to CognitoCredentials - Fix cached Identity Id error
- Cognito User Exceptions extend
CognitoUserException
- Add
CognitoUserException
toString helper
- Add
RandomString
helper
- Use bool
true
to represent 'SUCCESS' - Add
forgotPassword()
to CognitoUser - Add
confirmPassword()
to CognitoUser - Add
enableMfa()
to CognitoUser - Add
disableMfa()
to CognitoUser - Add
getAttributeVerificationCode()
to CognitoUser - Add
verifyAttribute()
to CognitoUser - Add
deleteUser()
to CognitoUser
- Updated Example App with persisted login sessions
- Store expiry time in Cognito Credentials instance
- Updated Example App with Signed Requests to Lambda
- Fix SigV4 signature error
- Added Example App
- Add
getUserAttributes()
to CognitoUser - Add
updateAttributes()
to CognitoUser - Add
deleteAttributes()
to CognitoUser
- renamed
Storage
toCognitoStorage
- simplify package load to single entry point
cognito.dart
- Add signature v4 helper
- Fix endpoint follows region
- Add get AWS credentials for authenticated users
- Remove dart:io dependency
- Format code with dartfmt
- Add Custom Storage support
- Initial Release