Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Cognito superuser group or user 'type' #217
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Describe alternatives you've considered
I'm looking for something similar to this. I tried getting it to work by adding multiple rules to my GraphQL schema, in the hopes that it would auth owner OR groups:
but Mutation (create) as an owner fails with an Unauthorized error since it only checks if the user is in one of the allowed groups - (owner is required but it never sets
The Query resolvers (get, list) look like they will work fine since it checks owner OR group by each individually setting
* temp commit * temp commit * Fixing dynamic group auth with multiple rules * Fixing #217 * Working on auth scenarios and adding more tests * Adding more tests for auth checks. * Totally restructuring the auth flows for get resolvers. This is a checkin commit as CUDL still remain to be updated * Adding support for list queries * Support for create operations in updated auth flows updating block statements * Adding back all tests. This concludes fixing the auth bugs * Adding parens on auth check * Changing name of test * Removing unnecessary userGroups variable instantiation