Skip to content
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

Behavior differs between sst dev and sst deploy (Ion auth handler using GoogleAdapter) #4524

Closed
madisonbullard opened this issue Jun 13, 2024 · 1 comment

Comments

@madisonbullard
Copy link

madisonbullard commented Jun 13, 2024

I can't get a response body from an auth handler Function when running sst dev, but it behaves as expected after sst deploy.

I created a repo to demonstrate this issue: https://github.com/madisonbullard/sst-ion-auth-issue

Details included in the README, referenced here:

In this repo, I'm creating an auth flow that should (I think) work for Google OIDC. The deployed SST app works as expected, but the sst dev behavior differs in unexpected ways.

Expected result: A 200 response, with a JSON body detailing a 302 redirect
Observed result: A 200 response, but no response body

The CloudWatch logs (see the sanitized logs in cloudwatch_logs.txt) show that when running sst dev and hitting the endpoint, the auth handler Lambda function is receiving the correct message (the JSON body with the 302 info).

We can actually view the expected result if we sst deploy instead of sst dev

@madisonbullard madisonbullard changed the title Behavior differs between sst dev and sst deploy (Ion auth handler) Behavior differs between sst dev and sst deploy (Ion auth handler using GoogleAdapter) Jun 13, 2024
Copy link
Contributor

thdxr commented Sep 23, 2024

should be fixed

@thdxr thdxr closed this as completed Sep 23, 2024
@thdxr thdxr transferred this issue from sst/ion Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants