Commit ff756bb
authored
feat: support for lambda authorizer (#1334)
* feat: lambda authorizer, update AuthRule and AuthRuleProvider
* feat: add AWSLambdaAuth
* feat: update AWSAuthorizationType docs
* feat: update interceptors, renamed shared types
* feat: update AWSAuthorizationConfiguration, fix warnings
* chore: lambda auth unit tests
* chore: update comments, remove unused associated value
* chore: add tests
* chore: add more interceptors tests
* feat: update SyncEngine requirements
* remove region from Lambda auth configuration
* sync requirements, explicit provider switch case
* style change
* integration tests
* integration tests
* throw PluginError if token provider not available
* resolve lint errors
* AuthToken interceptor
* update integ tests instructions
* update integ tests instructions
* update documentation
* test paginated query
* address PR comments
* return public/custom if user not logged in1 parent 872b695 commit ff756bb
File tree
35 files changed
+1086
-95
lines changed- Amplify.xcodeproj
- AmplifyPlugins
- API
- APICategoryPlugin.xcodeproj
- AWSAPICategoryPluginIntegrationTests/GraphQL/GraphQLWithLambdaAuthIntegrationTests
- AWSAPICategoryPluginTests
- Configuration
- Interceptor
- SubscriptionInterceptor
- AWSAPICategoryPlugin
- Configuration
- Interceptor
- RequestInterceptor
- SubscriptionInterceptor
- Operation
- SubscriptionFactory
- Core
- AWSPluginsCoreTests/Auth
- AWSPluginsCore
- Auth
- Configuration
- Model/Support
- DataStore
- AWSDataStoreCategoryPluginTests/Sync
- AWSDataStoreCategoryPlugin/Storage
- DataStoreCategoryPlugin.xcodeproj
- Amplify/Categories
- API/AuthProvider
- DataStore
- Model/Internal/Schema
- Subscribe
35 files changed
+1086
-95
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
1141 | 1142 | | |
1142 | 1143 | | |
1143 | 1144 | | |
| 1145 | + | |
1144 | 1146 | | |
1145 | 1147 | | |
1146 | 1148 | | |
| |||
1993 | 1995 | | |
1994 | 1996 | | |
1995 | 1997 | | |
| 1998 | + | |
1996 | 1999 | | |
1997 | 2000 | | |
1998 | 2001 | | |
| |||
2972 | 2975 | | |
2973 | 2976 | | |
2974 | 2977 | | |
2975 | | - | |
2976 | | - | |
2977 | 2978 | | |
2978 | 2979 | | |
2979 | 2980 | | |
| |||
4748 | 4749 | | |
4749 | 4750 | | |
4750 | 4751 | | |
| 4752 | + | |
4751 | 4753 | | |
4752 | 4754 | | |
4753 | 4755 | | |
| |||
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
24 | | - | |
| 33 | + | |
25 | 34 | | |
26 | | - | |
27 | | - | |
28 | | - | |
| 35 | + | |
| 36 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
| |||
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments