You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* feat(graphql-auth-transformer): protecting subscriptions
adding protection on subscriptions
BREAKING CHANGE: If an owner is used in the auth directive it will either be a requirement if it's
the only rule or an optional input if used with other rules
re #1766 #1043
* feat(graphql-auth-transformer): pr changes
added changes based on review
BREAKING CHANGE: If an owner is included in the auth directive it will either be a requirement if
it's the only rule or an optional input if used with other rules
re #1766 #1043
* feat(graphql-auth-transformer): protect mutations
protecting mutations as the same response is used in subscriptions - protected fields should still
be accessible through query operations
BREAKING CHANGE: the subscription operations will require an argument if owner is the only auth rule
re #1766 #1043
* feat(graphql-dynamodb-transformer): auth check
adding a check on auth in model
re #1766 #1043
* feat(graphql-transformer-core): added getfieldarguments
added function to get field arguments from type
re #1766 #1043
* Added changes to check for prev version of auth
* add checks for prev version of auth and added warning when adding a @model w/o @auth
* Changes to check if parent type has @model
* Updated ModelSubscriptionMap with status enum
* Updated Auth snapshots
* Updated Tests to account for new changes in auth
* Added learn more links
* Added identifyClaim
* changed status to level to match storage naming convention
* added version number in transformer config
* updated e2e tests based on auth changes
* Added change to read from cloud backend dir
* changes to modelsubscriptionmap
* Change to ModelSubsriptionMap
* Updated yarn.lock
* feat: pr review changes
add changes based pr comments and added a per field auth e2e test
BREAKING CHANGE: Subscriptions will require an argument if an owner is only rule set - If owner &
group rules are owner will be an optional arg
re pr #2068
* Added comment change
* refactor: additional pr review changes
Edited version check, for subscriptions added check for nonnull field auth, updated ddb transformer
to account for public flag
re pr #2068
* refactor(graphql-auth-transformer): changed subscription resolver
changed the subscription resolver response template
re pr #2068
* feat: subscription feedback changes
per field auth now protects mutations where it sets the operation label in mutation operations
re pr #2068
* chore(yarn.lock): update yarn.lock
* refactor(graphql-auth-transformer): per field auth error message edit
re pr #2068
* Updating based on new PR comments re pr #2068
* Change transformerConfig Ver
* DynamoDB Transformer check for public
* Added info on subscription levels in ddb transformer
* Changed typo here
* feat(graphql-auth-transformer): subscription resolver logic change
changed resolver logic to also get created when subscription level is PUBLIC also added snapshot
tests
* feat(graphql-auth-transformer): change add owner logic
changes based on pr review changing add owner logic which looks at list of rules and change of
remove command on package.json
re pr #2068
* updated yarn lock
* feat(graphql-auth-transformer): subscriptions obj logic change
changed logic to subscriptions object and added rimraf as devdependency
re pr #2068
* moved add owner argument logic in else flow for adding logic
* Added padding to prompts
context.print.info('Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth \n');
42
+
}
43
+
}
44
+
45
+
/**
46
+
* @TODO Include a map of versions to keep track
47
+
*/
48
+
asyncfunctiontransformerVersionCheck(
49
+
context,resourceDir,cloudBackendDirectory,
50
+
updatedResources,usedDirectives,
51
+
){
52
+
constversionChangeMessage='The default behaviour for @auth has changed in the latest version of Amplify\nRead here for details: https://aws-amplify.github.io/docs/cli-toolchain/graphql#authorizing-subscriptions';
53
+
lettransformerConfig;
54
+
// this is where we check if there is a prev version of the transformer being used
0 commit comments