I’m struggling to get auth impersonation working with Redwood Studio. I created a minimal example on 6.5.1: GitHub - mdkess/test-redwood-studio: Playing with redwood studio authentication impersonation. This is just vanilla RedwoodJS set up with dbAuth.
I created a user (username: asdf, password: asdf, id: 1), and then add to the redwood.toml: https://github.com/mdkess/test-redwood-studio/blob/main/redwood.toml
GraphiQL in the studio sets the header {"auth-provider":"dbAuth","authorization":"Bearer 1","cookie":"session=s+P2Q2I8VHgqkmKl8t7jr9PdxAn5hQFleZnrvhjF433FC1papJeq9jJkyxxDjcA8|EsFGPKsOVTrUCLuijDMYcg=="}
but then on the API side it can’t seem to decode it: "Exception in getAuthenticationContext: Cannot read properties of undefined (reading 'id')"
.
I feel like I’m probably missing something obvious - any idea what I’m doing wrong?