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

Add Interecptors, ConnectionProviderFactory, and integration test target #4

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

lawmicha
Copy link
Contributor

@lawmicha lawmicha commented Mar 1, 2020

Description of changes:

  • Moved over the three common interceptor classes: APIKey, IAM, OIDC.
    Refactored the initialization methods to allow consumers to use without taking on a dependency on the auth provider classes vended by AppSync client.
    The reason for this is to prevent a breaking change, we cannot move the auth provider classes over to AppSyncRealTimeClient or AppSyncClient consumers will
    have to take on AppSyncRealTimeClient as a dependency.
  • Add ConnectionProviderFactory class for creating connection providers with auth interceptors.
    This is the entry point for consumers to pass (url, authInterceptor) to get a connection provider back.
  • Add integration test target with AppSync backend provisioned

Amplify PR aws-amplify/amplify-swift#341
AppSyncClient PR awslabs/aws-mobile-appsync-sdk-ios#353

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

HostApp/ContentView.swift Outdated Show resolved Hide resolved
@@ -1,5 +1,8 @@
# AppSync RealTime Client for iOS

## 1.0.2

Add Interceptors and interceptor protocols
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

going to add more details to this

@lawmicha lawmicha self-assigned this Mar 6, 2020
  Refactored the initialization methods to allow consumers to use without taking on a dependency on the auth provider classes vended by AppSync client.
  The reason for this is to prevent a breaking change, we cannot move the auth provider classes over to AppSyncRealTimeClient or AppSyncClient consumers will
  have to take on AppSyncRealTimeClient as a dependency.
- Add ConnectionProviderFactory class for creating connection providers with auth interceptors.
  This is the entry point for consumers to pass (url, authInterceptor) to get a connection provider back.
- Add integration test target with AppSync backend provisioned
@lawmicha lawmicha force-pushed the feature/interceptors branch 2 times, most recently from a05da67 to c586449 Compare March 9, 2020 16:30
@lawmicha lawmicha force-pushed the feature/interceptors branch from c586449 to 8f56c85 Compare March 9, 2020 16:31
@lawmicha lawmicha merged commit af4767b into master Mar 10, 2020
@lawmicha lawmicha deleted the feature/interceptors branch April 10, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants