I have the OAuthProxy plugin setup.
When I click login on a preview environment, the oauth flow completes and redirects successfully to the main app, which then redirects back to the preview environment. But, the user is created in the main app instead of the preview app, and the cookie in the preview app references a non-existant session/user. It also sets the cookie in the main app.
What configurations might I be missing? Does the order of plugins matter? I've tried rearranging my plugins but it doesn't seem to effect anything