-
Notifications
You must be signed in to change notification settings - Fork 74
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
S3 Access Denied when doing a ServerSide request. Possible bug NextJS #2274
Comments
Hey @crafael23, thank you for reaching out. When a user is assigned to a group the user will assume the created group role permissions. |
@ykethan I'll keep an eye for a definite solution once there is. In the meanwhile i'd like to add that as per my testing that an authenticated user with multiple user groups assigned it will only assume the first one to show up and only that one. Alternatively just as a note since you might already know this the behavior is not replicated with data and the dynamodb instance. Users with user groups are able to assume the Authenticated role without an issue. Why might the behavior be different for storage? |
Hey @crafael23, when a user is assigned to multiple groups the group with the highest precedence will be selected as the preferred role. This is currently being on aws-amplify/amplify-js#1125 and #2046. |
@ykethan thanks for the context. I'll keep an eye out for any changes in the future. |
Closing this issue. Do subscribe to the linked issues for any updated on the behavior. |
Environment information
Describe the bug
Cannot List items in a path defined in the bucket which allows authenticated to do everything.
Reproduction steps
I have defined my bucked like this
And this is my auth definition
For the moment i have commented out guest and group permissions because that is what the problem is.
I was just testing this out and I havent been able to get around it.
In my nextjs app on an async server component this is what i am attempting
I get the following on the console.
When I uncomment the user group permission it does work.
Why is it assuming that user group role specifically?
Is there something else I need to change in the cookies or contextspec?
Note this is both in sandbox and in a fully deployed branch.
The text was updated successfully, but these errors were encountered: