Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DataStore] Add SQLiteHelper and setUp implementation #51

Merged
merged 1 commit into from
Nov 2, 2019

Conversation

mutablealligator
Copy link
Contributor

Description of changes:

  1. Add implementation of the SQLiteHelper that will be used for database and table creation and upgrades. SQLiteHelper also helps get a connection handle to the database.

  2. Added Android instrumentation tests for the helper.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mutablealligator mutablealligator merged commit ba95933 into master Nov 2, 2019
@mutablealligator mutablealligator deleted the vb/storage_adapter_save branch November 2, 2019 20:49
div5yesh added a commit that referenced this pull request Apr 25, 2022
* chore: add aws-sdk-koltin (#30)

* add aws-sdk-koltin
- change minSDKVersion to 24
- upgrade koltin version to 1.6
- compile with opt-in requirements

* chore: remove v1 cognito auth plugin (#31)

* fix: change minSDK to 24

* chore: add state machine engine (#32)

* intial commit: add hierarchical state machine engine

* fix: use imports for tests

* chore: add SRP helper (#33)

* add SRP helper and tests

* fix: use android base64 encoder decoder
- add base64 mock for tests

* rename small and large to public and private as per RFC

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* add credential store implementation (#47)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Add credential Store

* rebase and minor changes

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Fix for authNSignout event (#53)

* Fix for authNSignout event

* Fixing lint errors

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>
div5yesh added a commit that referenced this pull request Apr 25, 2022
* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

* Integrating credential store

* Fixed the failing test

* Fixed the credential store to allow partial save feature to update values at once

* Fixed build issues and addressed PR comments

* Made the keyvaluepair generic

* Resolving merge conflicts

* Addressing PR comments

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>
div5yesh added a commit that referenced this pull request Apr 25, 2022
* chore: add Auth v2 Plugin (dev-preview) (#38)

* chore: add aws-sdk-koltin (#30)

* add aws-sdk-koltin
- change minSDKVersion to 24
- upgrade koltin version to 1.6
- compile with opt-in requirements

* chore: remove v1 cognito auth plugin (#31)

* fix: change minSDK to 24

* chore: add state machine engine (#32)

* intial commit: add hierarchical state machine engine

* fix: use imports for tests

* chore: add SRP helper (#33)

* add SRP helper and tests

* fix: use android base64 encoder decoder
- add base64 mock for tests

* rename small and large to public and private as per RFC

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* add credential store implementation (#47)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Add credential Store

* rebase and minor changes

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Fix for authNSignout event (#53)

* Fix for authNSignout event

* Fixing lint errors

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Update CredentialStore State Machine (#61)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Update CredentialStore State Machine

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add escape hatch and credentials provider (#63)

* add auth service for escape hatch

* remove default actions and refactor actions

* todo fix test failures

* add cognito exception covertor

* bugfix and refactor:
- fix confirm and sign up api
- dispatch state machine events from onsubscribe callback
- fix authN configure transition

* add missing auth session and tokens classes

* add cognito credentials provider for amplify categories

* handle errors and exceptions
- call errors callbacks

* PR feedback

* remove test ignore

* Integrate credential store (#62)

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

* Integrating credential store

* Fixed the failing test

* Fixed the credential store to allow partial save feature to update values at once

* Fixed build issues and addressed PR comments

* Made the keyvaluepair generic

* Resolving merge conflicts

* Addressing PR comments

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>

* Minimize AmplifyCredential object while storing and retrieving (#64)

* feat: Port TransferUtility functionality and Ingtegrate kotlin sdk

feat: Move TransferDB Util to Amplify

feat: port upload API to Amplify (#20)

* feat: port upload API to Amplify

* Address PR Comments

feat: Add support for upload from InputStream (#23)

feat: Add support for multi-part upload

feat: Add support for Download api

chore: Remove TransferUtility dependency (#27)

fix: bug fixes around multipart upload

feat: Integrate kotlin SDK (#60)

* Implement the fetchauthsession interface (#65)

* Add Legacy KeyValueStore to factory (#66)

* Add Legacy KeyValueStore to factory

* WIP Migrate API to new credentials

* Revert key value signatures to String only

* Errors and data (#67)

* disable klint

* fix sign-in and sign-up result data and error states
- fix unit tests for confirm signup
- fix state transitions for signup

* fix unit tests and lint errors

* fix revoke token action

* chore: remove mobile client dependency from S3 module (#71)

* chore: remove mobileclient dependency from s3 module

* clean up

* address PR comments

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* Fix fas to use codegen (#68)

* Fix fetchauthsession to use new actions inside codegen

* Handling PR comments

* Addressing PR comments

* Mocking tests

* WIP : adding E2e tests for FetchAuthSession

* some more tests

* Add amplifyCredential throughout FAS SMs

* Fixed the public interface for FAS

* fix fetch/refresh session unit tests

* remove unnecessary subbing

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* fix: handle invalid states (#70)

* handle invalid states for sign in
- rename reset sign up event

* handle invalid states for sign out

* handle invalid states - sign up and confirm sign up

* fix indentation

* send hub events

* add invalid state and signed in exception

* fill in gaps for resend signup code - WIP

* fix signup success event

* Fix fas credentialstore for demo (#72)

* Fix for FAS and Credential Store

* fixes

* fix fetch identity and aws creds actions
- cleanup plugin FAS api call
- fix listener cancellations

* Cleaned up FAS in the cognito plugin

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* move states, events and data to codegen package (#73)

* Fixed the crash when userpooltokens is null, enabled guest access, fi… (#74)

* Fixed the crash when userpooltokens is null, enabled guest access, fixed bubbling of errors, fixed issue when signedin is false

* Removing mentions of Errors

* Adding the fetchAuthsession else to return signin as false if the SM is any other state than SessionEstablished

* Removing extra log statements

* Addressed comments

* removed unnecessary import

* Fix signin failure when user is already signed in (#76)

* Fix for failed sign in when user is already signed in

* Fixed sign in

* Fixed sign in

* stub out and refactor store actions (#77)

* Fix getcurrentuser (#79)

* Fix getCurrentUser without breaking public api

* Add a sleep instead of introducing callbacks

* Using semaphores instead thread.sleep

* chore: Enable ktlint for all the modules (#81)

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* add license info to files (#82)

* Token expiry (#80)

* add JWT parser and session helper

* refactor states and events

* fix token expriy and FAS actions

* cleanup and todos

* fix guest access

* fix non null tokens when updating credentials

* rename plugin key constant

* fix lint errors

* update sdk version for global signout bugfix

* add better fallback msg for fetch auth substate errors

* add JWT and session helper tests
- use Instant instead of Date

* add get user sub helper

* indentation fixes

* add license header to new files

* Update README.md (#75)

* Update README.md

* document escape hatch

* Update README.md

* fix auth session scenarios (#84)

* Update README.md

* fix auth session error cases (#86)

* fix auth session error cases
- call success if creds are empty
- propagate state errors to session result
- cleanup and refactor
- change version name to dev-preview

* add invalid account type exception if no identity
- move out AuthEnvirnoment

* fix lint error

* fix SRP for app clients with secret (#87)

* fix SRP for app clients with secret

* fix sign up delivery detais exception crash

* do not send secret hash if client secret not found

* rename fetch authsession actions to naming confusion with interfaces

* reset authZ to configured after session is established

* indentation

* Replace AWS Mobile SDK dependency to AWS Kotlin SDK in API (#85)

* Use Kotlin signer in API category

* Fix REST signer

* Subscription signer changes.  Committing them to save while looking at Sunil's work

* Migrate to Kotlin SDK, cleanup and fix tests

* Add userpool tokens provider

* Refactor to support nullability

* Add username call

* Convert AuthSession directly to AWSCognitoAuthSession

* Fix checkstyle and ktlint errors

Co-authored-by: Thomas Leing <leint@amazon.com>

* Inline the implementation of credentials provider in storage category. (#83)

* Inline the implementation of credentials provider in storage category.

* Fix checkstyle and ktlint errors

* fix code indentation for better readability

* fix invalid states (#89)

* fix invalid states
- when no user pool
- when no idp
- when empty aws credentials
- already signed out

* add recovery suggestion action item

* set user agent framework system property
- change user agent format
- remove duplicate metadata

* add system property to override useragent

* fix unit tests

* add documentation

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>
Co-authored-by: sdhuka <sdhuka@amazon.com>
Co-authored-by: Saijad Dhuka <83975678+sdhuka@users.noreply.github.com>
Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>
Co-authored-by: Sunil Timalsina <sunil.timalsina@gmail.com>
Co-authored-by: Thomas Leing <leint@amazon.com>
sktimalsina added a commit that referenced this pull request Apr 27, 2022
* chore: add Auth v2 Plugin (dev-preview) (#38)

* chore: add aws-sdk-koltin (#30)

* add aws-sdk-koltin
- change minSDKVersion to 24
- upgrade koltin version to 1.6
- compile with opt-in requirements

* chore: remove v1 cognito auth plugin (#31)

* fix: change minSDK to 24

* chore: add state machine engine (#32)

* intial commit: add hierarchical state machine engine

* fix: use imports for tests

* chore: add SRP helper (#33)

* add SRP helper and tests

* fix: use android base64 encoder decoder
- add base64 mock for tests

* rename small and large to public and private as per RFC

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* add credential store implementation (#47)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Add credential Store

* rebase and minor changes

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Fix for authNSignout event (#53)

* Fix for authNSignout event

* Fixing lint errors

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Update CredentialStore State Machine (#61)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Update CredentialStore State Machine

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add escape hatch and credentials provider (#63)

* add auth service for escape hatch

* remove default actions and refactor actions

* todo fix test failures

* add cognito exception covertor

* bugfix and refactor:
- fix confirm and sign up api
- dispatch state machine events from onsubscribe callback
- fix authN configure transition

* add missing auth session and tokens classes

* add cognito credentials provider for amplify categories

* handle errors and exceptions
- call errors callbacks

* PR feedback

* remove test ignore

* Integrate credential store (#62)

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

* Integrating credential store

* Fixed the failing test

* Fixed the credential store to allow partial save feature to update values at once

* Fixed build issues and addressed PR comments

* Made the keyvaluepair generic

* Resolving merge conflicts

* Addressing PR comments

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>

* Minimize AmplifyCredential object while storing and retrieving (#64)

* feat: Port TransferUtility functionality and Ingtegrate kotlin sdk

feat: Move TransferDB Util to Amplify

feat: port upload API to Amplify (#20)

* feat: port upload API to Amplify

* Address PR Comments

feat: Add support for upload from InputStream (#23)

feat: Add support for multi-part upload

feat: Add support for Download api

chore: Remove TransferUtility dependency (#27)

fix: bug fixes around multipart upload

feat: Integrate kotlin SDK (#60)

* Implement the fetchauthsession interface (#65)

* Add Legacy KeyValueStore to factory (#66)

* Add Legacy KeyValueStore to factory

* WIP Migrate API to new credentials

* Revert key value signatures to String only

* Errors and data (#67)

* disable klint

* fix sign-in and sign-up result data and error states
- fix unit tests for confirm signup
- fix state transitions for signup

* fix unit tests and lint errors

* fix revoke token action

* chore: remove mobile client dependency from S3 module (#71)

* chore: remove mobileclient dependency from s3 module

* clean up

* address PR comments

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* Fix fas to use codegen (#68)

* Fix fetchauthsession to use new actions inside codegen

* Handling PR comments

* Addressing PR comments

* Mocking tests

* WIP : adding E2e tests for FetchAuthSession

* some more tests

* Add amplifyCredential throughout FAS SMs

* Fixed the public interface for FAS

* fix fetch/refresh session unit tests

* remove unnecessary subbing

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* fix: handle invalid states (#70)

* handle invalid states for sign in
- rename reset sign up event

* handle invalid states for sign out

* handle invalid states - sign up and confirm sign up

* fix indentation

* send hub events

* add invalid state and signed in exception

* fill in gaps for resend signup code - WIP

* fix signup success event

* Fix fas credentialstore for demo (#72)

* Fix for FAS and Credential Store

* fixes

* fix fetch identity and aws creds actions
- cleanup plugin FAS api call
- fix listener cancellations

* Cleaned up FAS in the cognito plugin

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* move states, events and data to codegen package (#73)

* Fixed the crash when userpooltokens is null, enabled guest access, fi… (#74)

* Fixed the crash when userpooltokens is null, enabled guest access, fixed bubbling of errors, fixed issue when signedin is false

* Removing mentions of Errors

* Adding the fetchAuthsession else to return signin as false if the SM is any other state than SessionEstablished

* Removing extra log statements

* Addressed comments

* removed unnecessary import

* Fix signin failure when user is already signed in (#76)

* Fix for failed sign in when user is already signed in

* Fixed sign in

* Fixed sign in

* stub out and refactor store actions (#77)

* Fix getcurrentuser (#79)

* Fix getCurrentUser without breaking public api

* Add a sleep instead of introducing callbacks

* Using semaphores instead thread.sleep

* chore: Enable ktlint for all the modules (#81)

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* add license info to files (#82)

* Token expiry (#80)

* add JWT parser and session helper

* refactor states and events

* fix token expriy and FAS actions

* cleanup and todos

* fix guest access

* fix non null tokens when updating credentials

* rename plugin key constant

* fix lint errors

* update sdk version for global signout bugfix

* add better fallback msg for fetch auth substate errors

* add JWT and session helper tests
- use Instant instead of Date

* add get user sub helper

* indentation fixes

* add license header to new files

* Update README.md (#75)

* Update README.md

* document escape hatch

* Update README.md

* fix auth session scenarios (#84)

* Update README.md

* fix auth session error cases (#86)

* fix auth session error cases
- call success if creds are empty
- propagate state errors to session result
- cleanup and refactor
- change version name to dev-preview

* add invalid account type exception if no identity
- move out AuthEnvirnoment

* fix lint error

* fix SRP for app clients with secret (#87)

* fix SRP for app clients with secret

* fix sign up delivery detais exception crash

* do not send secret hash if client secret not found

* rename fetch authsession actions to naming confusion with interfaces

* reset authZ to configured after session is established

* indentation

* Replace AWS Mobile SDK dependency to AWS Kotlin SDK in API (#85)

* Use Kotlin signer in API category

* Fix REST signer

* Subscription signer changes.  Committing them to save while looking at Sunil's work

* Migrate to Kotlin SDK, cleanup and fix tests

* Add userpool tokens provider

* Refactor to support nullability

* Add username call

* Convert AuthSession directly to AWSCognitoAuthSession

* Fix checkstyle and ktlint errors

Co-authored-by: Thomas Leing <leint@amazon.com>

* Inline the implementation of credentials provider in storage category. (#83)

* Inline the implementation of credentials provider in storage category.

* Fix checkstyle and ktlint errors

* fix code indentation for better readability

* fix invalid states (#89)

* fix invalid states
- when no user pool
- when no idp
- when empty aws credentials
- already signed out

* add recovery suggestion action item

* fix unit test timeout

* fix build errors due to rebase

* fix: Fix storage category integration tests (#90)

* fix: Fix storage category integration tests

* address PR comments

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* set user agent as per new format (#88)

* chore: add Auth v2 Plugin (dev-preview) (#38)

* chore: add aws-sdk-koltin (#30)

* add aws-sdk-koltin
- change minSDKVersion to 24
- upgrade koltin version to 1.6
- compile with opt-in requirements

* chore: remove v1 cognito auth plugin (#31)

* fix: change minSDK to 24

* chore: add state machine engine (#32)

* intial commit: add hierarchical state machine engine

* fix: use imports for tests

* chore: add SRP helper (#33)

* add SRP helper and tests

* fix: use android base64 encoder decoder
- add base64 mock for tests

* rename small and large to public and private as per RFC

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* add credential store implementation (#47)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Add credential Store

* rebase and minor changes

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Fix for authNSignout event (#53)

* Fix for authNSignout event

* Fixing lint errors

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* Update CredentialStore State Machine (#61)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Update CredentialStore State Machine

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add escape hatch and credentials provider (#63)

* add auth service for escape hatch

* remove default actions and refactor actions

* todo fix test failures

* add cognito exception covertor

* bugfix and refactor:
- fix confirm and sign up api
- dispatch state machine events from onsubscribe callback
- fix authN configure transition

* add missing auth session and tokens classes

* add cognito credentials provider for amplify categories

* handle errors and exceptions
- call errors callbacks

* PR feedback

* remove test ignore

* Integrate credential store (#62)

* chore: auth state machine codegen (#34)

* chore: add SM codegen
- auth states with resolvers, events, actions and data

* chore: refactor
- add events to actions instead of data properties

* fix todo not implemented

* chore: add Auth v2 plugin (#35)

* add auth v2 plugin
- implement confiure actions
- add config builders
- implement configure api

* clean up and support java builders for config

* chore: add auth v2 signin (#44)

* chore: implement signin
* add SRP signin service calls

* add state machine and plugin tests

* chore: add auth signup and signout (#37)

* chore: implement signup and signout
- add signup and confirm signup service calls
- add signout service calls

* [Fetch Auth Session]Add Fetch Auth Session State Machines [2/4] (#40)

* Add Fetch Auth Session State Machines. Please note that this is incomplete as there are 2 other state machines that need to be added here

* Addressed comments

* Made changes based on the State Machine Changes in iOS and implemented FetchAWSAuthSessionStateMachine (#43)

* Made changes based on the State Machine Changes in iOS

* Added more TODOs

* add missing documentation and builder methods

* send error event instead of logging the error

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>

* chore: add state builders (#42)

* add state builders
- fix new state refs for resolved states

* remove not-null assert for sign-in params

* chore: refactor
- fix not-null asserts, use runCatching and remove nullable properties
- add null safe calls
- remove runBlocking and make actions suspend calls
- set default ids to actions
- set default type property for states
- use kotlin idiomatic best practices

* fix build errors due to rebase

* Anshul/fetch auth session wip (#48)

* Add fetchAuthSession state machine

* Fixed the actions

* Merge main staging branch

* Addressed PR comments

* addressed comments

* Addressed comments (#49)

* Adding Authorization (#41)

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

Co-authored-by: Sunil Timalsina <timasuni@amazon.com>

* Remove dependency on AuthSignoutOptions (#51)

* Revert test change for Temporal time unit class as it depends on Java 8 (#54)

* Fix for authNSignout event

* Fixing lint errors

* revert the test change

* Add Credential Store state machine (#50)

* Adding Authorization

* More cleanup

* Update authorization state machine

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Adding Authorization

* More cleanup

* Adding Authorization

* Remove unnecessary code blocks

* More cleanup

* Update authorization state machine

* Add credential store state machine

* Add unit and integration tests

Co-authored-by: Anshul Gupta <gpanshu@amazon.com>

* chore: stub actions (#52)

* stub actions
- add default actions with happy path transitions
- move service calls to cognito actions

* enable sign state transition unit test
* fix merge conflicts and build errors

* chore: refactor
- stub actions w/o classes
- reconcile state machines with iOS

* fix invalid and add missing transitions
* add authZ resolver to authState
* add missing signout transition
* bump dependecies versions
* add state transition unit tests w/ mocked actions

* Integrating credential store

* Fixed the failing test

* Fixed the credential store to allow partial save feature to update values at once

* Fixed build issues and addressed PR comments

* Made the keyvaluepair generic

* Resolving merge conflicts

* Addressing PR comments

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>

* Minimize AmplifyCredential object while storing and retrieving (#64)

* feat: Port TransferUtility functionality and Ingtegrate kotlin sdk

feat: Move TransferDB Util to Amplify

feat: port upload API to Amplify (#20)

* feat: port upload API to Amplify

* Address PR Comments

feat: Add support for upload from InputStream (#23)

feat: Add support for multi-part upload

feat: Add support for Download api

chore: Remove TransferUtility dependency (#27)

fix: bug fixes around multipart upload

feat: Integrate kotlin SDK (#60)

* Implement the fetchauthsession interface (#65)

* Add Legacy KeyValueStore to factory (#66)

* Add Legacy KeyValueStore to factory

* WIP Migrate API to new credentials

* Revert key value signatures to String only

* Errors and data (#67)

* disable klint

* fix sign-in and sign-up result data and error states
- fix unit tests for confirm signup
- fix state transitions for signup

* fix unit tests and lint errors

* fix revoke token action

* chore: remove mobile client dependency from S3 module (#71)

* chore: remove mobileclient dependency from s3 module

* clean up

* address PR comments

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* Fix fas to use codegen (#68)

* Fix fetchauthsession to use new actions inside codegen

* Handling PR comments

* Addressing PR comments

* Mocking tests

* WIP : adding E2e tests for FetchAuthSession

* some more tests

* Add amplifyCredential throughout FAS SMs

* Fixed the public interface for FAS

* fix fetch/refresh session unit tests

* remove unnecessary subbing

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* fix: handle invalid states (#70)

* handle invalid states for sign in
- rename reset sign up event

* handle invalid states for sign out

* handle invalid states - sign up and confirm sign up

* fix indentation

* send hub events

* add invalid state and signed in exception

* fill in gaps for resend signup code - WIP

* fix signup success event

* Fix fas credentialstore for demo (#72)

* Fix for FAS and Credential Store

* fixes

* fix fetch identity and aws creds actions
- cleanup plugin FAS api call
- fix listener cancellations

* Cleaned up FAS in the cognito plugin

Co-authored-by: Divyesh Chitroda <div5yesh@gmail.com>

* move states, events and data to codegen package (#73)

* Fixed the crash when userpooltokens is null, enabled guest access, fi… (#74)

* Fixed the crash when userpooltokens is null, enabled guest access, fixed bubbling of errors, fixed issue when signedin is false

* Removing mentions of Errors

* Adding the fetchAuthsession else to return signin as false if the SM is any other state than SessionEstablished

* Removing extra log statements

* Addressed comments

* removed unnecessary import

* Fix signin failure when user is already signed in (#76)

* Fix for failed sign in when user is already signed in

* Fixed sign in

* Fixed sign in

* stub out and refactor store actions (#77)

* Fix getcurrentuser (#79)

* Fix getCurrentUser without breaking public api

* Add a sleep instead of introducing callbacks

* Using semaphores instead thread.sleep

* chore: Enable ktlint for all the modules (#81)

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* add license info to files (#82)

* Token expiry (#80)

* add JWT parser and session helper

* refactor states and events

* fix token expriy and FAS actions

* cleanup and todos

* fix guest access

* fix non null tokens when updating credentials

* rename plugin key constant

* fix lint errors

* update sdk version for global signout bugfix

* add better fallback msg for fetch auth substate errors

* add JWT and session helper tests
- use Instant instead of Date

* add get user sub helper

* indentation fixes

* add license header to new files

* Update README.md (#75)

* Update README.md

* document escape hatch

* Update README.md

* fix auth session scenarios (#84)

* Update README.md

* fix auth session error cases (#86)

* fix auth session error cases
- call success if creds are empty
- propagate state errors to session result
- cleanup and refactor
- change version name to dev-preview

* add invalid account type exception if no identity
- move out AuthEnvirnoment

* fix lint error

* fix SRP for app clients with secret (#87)

* fix SRP for app clients with secret

* fix sign up delivery detais exception crash

* do not send secret hash if client secret not found

* rename fetch authsession actions to naming confusion with interfaces

* reset authZ to configured after session is established

* indentation

* Replace AWS Mobile SDK dependency to AWS Kotlin SDK in API (#85)

* Use Kotlin signer in API category

* Fix REST signer

* Subscription signer changes.  Committing them to save while looking at Sunil's work

* Migrate to Kotlin SDK, cleanup and fix tests

* Add userpool tokens provider

* Refactor to support nullability

* Add username call

* Convert AuthSession directly to AWSCognitoAuthSession

* Fix checkstyle and ktlint errors

Co-authored-by: Thomas Leing <leint@amazon.com>

* Inline the implementation of credentials provider in storage category. (#83)

* Inline the implementation of credentials provider in storage category.

* Fix checkstyle and ktlint errors

* fix code indentation for better readability

* fix invalid states (#89)

* fix invalid states
- when no user pool
- when no idp
- when empty aws credentials
- already signed out

* add recovery suggestion action item

* set user agent framework system property
- change user agent format
- remove duplicate metadata

* add system property to override useragent

* fix unit tests

* add documentation

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>
Co-authored-by: sdhuka <sdhuka@amazon.com>
Co-authored-by: Saijad Dhuka <83975678+sdhuka@users.noreply.github.com>
Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>
Co-authored-by: Sunil Timalsina <sunil.timalsina@gmail.com>
Co-authored-by: Thomas Leing <leint@amazon.com>

* Fix integration tests and cleanup (#91)

* add logger (#92)

* refactor and add logger
- add logger to auth env
- add verbose state change logs
- remove direct access envs
- move client initialization to plugin from actions
- change client init to factory only
- make cred stores constant in cred env
- fix tests

* add env bound Action builder
- add name param to action builder
- change event, action and state type to simple class names for logging
- add logger to cred SM

* Use bound action builder and add verbose logs
- add try/catch with event returns
- change runCatching to try/catch

* check for origin_jti claim to revoke tokens

* fix unit tests (#93)

* fix unit tests
 - use listener tokens to cancel

* feat: Add transfer progress listener to S3 transfer API (#94)

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* fix: Set correct byteBuffer size according to file length (#95)

Revert "fix: Set correct byteBuffer size according to file length"

This reverts commit 1cde03f441231771d0d6b400bd5e272110bb942c.

fix: Set correct byteBuffer size according to file length

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* add license info and version update (#97)

* add license info

* update version name for dev-preview

* fix lint errors

* Upgrade mockito to fix objenesis compile error

* fix listFiles API: add prefix (#1713)

* fix lint errors

* Fix API instrumentation test (#1714)

* fix hard coded bracket

* fix: Ignore failing tests to unblock dev-preview (#1715)

Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>

* fix user agent integ tests

* Fixing Auth integration tests

* Fix instrumentation test

* Ignore integration tests for dev-preview

* Change device farm script to exit on FAIL only (#1716)

* fix lint errors

Co-authored-by: gpanshu <91897496+gpanshu@users.noreply.github.com>
Co-authored-by: Sunil Timalsina <timasuni@amazon.com>
Co-authored-by: Anshul Gupta <gpanshu@amazon.com>
Co-authored-by: Gupta <gpanshu@f4d4889ce4ec.ant.amazon.com>
Co-authored-by: sdhuka <sdhuka@amazon.com>
Co-authored-by: Saijad Dhuka <83975678+sdhuka@users.noreply.github.com>
Co-authored-by: Dhuka <sdhuka@98dd607e3407.ant.amazon.com>
Co-authored-by: Sunil Timalsina <sunil.timalsina@gmail.com>
Co-authored-by: Thomas Leing <leint@amazon.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
datastore DataStore category/plugins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants