-
Notifications
You must be signed in to change notification settings - Fork 288
Add support for Cosmos field level auth #1468
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
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
Aniruddh25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for implementing this new feature! Few more concerns then its good to go
seantleonard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nits on naming/comments to clarify intent.
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
seantleonard
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
last nit, otherwise looks good!
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
src/Service/Services/MetadataProviders/CosmosSqlMetadataProvider.cs
Outdated
Show resolved
Hide resolved
Aniruddh25
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the contributions :)
Why make this change?
What is this change?
GraphQLFilterParserfor Cosmos.WILDCARDand parse all the columns from schema.gqlIncludedandExcludedcolumns from runtime config by injectingAuthorizationResolverinto theCosmosMutationEngineto make a call to check the columns.How was this tested?