aws-cdk icon indicating copy to clipboard operation
aws-cdk copied to clipboard

AppSync: additionalAuthorizationModes property type documentation

Open oleh-kolinko opened this issue 6 years ago • 6 comments

https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.AuthorizationConfig.html

property: additionalAuthorizationModes? type: json

In typescript implementation type is not json property: additionalAuthorizationModes? type: [AuthMode]


This is a 📕 documentation issue

oleh-kolinko avatar Mar 17 '20 15:03 oleh-kolinko

Similar/related to this, AuthMode doesn't actually list any of the relevant modes:

  • https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.AuthMode.html

Looking at the source:

Though they do have their own pages:

  • https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.ApiKeyConfig.html
  • https://docs.aws.amazon.com/cdk/api/latest/docs/@aws-cdk_aws-appsync.UserPoolConfig.html

It would be nice if they were linked from the main AuthMode page though, for easier discoverability.

0xdevalias avatar Apr 02 '20 05:04 0xdevalias

Hi , Any Updates or solution for this ?

AbdoNile avatar May 06 '20 11:05 AbdoNile

@AbdoNile since AppSync is currently an experimental module, most of the contributions have been from the community. This one should be pretty simple if you're inclined to submit a PR. Otherwise someone from the core team will get to it when the AppSync module gets prioritized for stabilization, along with other issues in the module.

MrArnoldPalmer avatar May 06 '20 23:05 MrArnoldPalmer

Specifying a different default auth mode doesn't seem to work. It somehow still defaults to API KEY.

andreascasen avatar May 08 '20 13:05 andreascasen

I believe this has been fixed? I dont see any discrepancies between the source code and the docs anymore unless I'm missing something.

I believe the disucssion on AuthMode is deprecated because implementation is now that UserPoolConfig and ApiKeyConfig are standalone interfaces. https://github.com/aws/aws-cdk/blob/d30fa9dda0726230f077c181833fddd40450d6ae/packages/%40aws-cdk/aws-appsync/lib/graphqlapi.ts#L86 https://github.com/aws/aws-cdk/blob/d30fa9dda0726230f077c181833fddd40450d6ae/packages/%40aws-cdk/aws-appsync/lib/graphqlapi.ts#L108

@andreascasen what error are you getting? If you could open up an issue and tag @aws-cdk/aws-appsync that would be great!

BryanPan342 avatar Jul 16 '20 16:07 BryanPan342

This issue has not received a response in a while. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

github-actions[bot] avatar Jul 24 '20 06:07 github-actions[bot]