Ashishkumar Pandey
04/29/2022, 2:43 PM<http://auth.abc.xyz/.well-known/openid-configuration|auth.abc.xyz/.well-known/openid-configuration>
and <http://auth.abc.xyz/.well-known/jwks.json|auth.abc.xyz/.well-known/jwks.json>
using the sst.Api
construct. Is this doable, I’m trying to create an openid discovery endpoint for a custom auth service so there’s no way I can use another route.Ashishkumar Pandey
04/29/2022, 2:48 PM<http://auth.abc.xyz/.well-known/openid-configuration|auth.abc.xyz/.well-known/openid-configuration>
endpoint was successfully deployed but I am not able to do so with the jwks.json
route.Ashishkumar Pandey
04/29/2022, 2:54 PMjwks.json
route returns me a http 500 and doesn’t even hit my lambda, I think the api gw is blocking it for some reason.Frank
/.well-known/jwks.json
route, and started up sst start
.
Lambda does receive the request, and it was sent to my local, but I got a weird error.Ashishkumar Pandey
04/29/2022, 3:00 PMAshishkumar Pandey
04/29/2022, 3:02 PMFrank
sst deploy
?Ashishkumar Pandey
04/29/2022, 3:04 PMFrank
sst start
specificlly.Ashishkumar Pandey
04/29/2022, 3:20 PMsst deploy
. I’ll disable the live mode for this for now, frankly live mode is a luxury, though if you can spare the bandwidth to get this working with sst start
then I’d be very glad, would help me get my work done faster. Thank you for the guidance, I really appreciate it. 😁🙏Frank
require is not defined
error?Ashishkumar Pandey
04/29/2022, 4:30 PMPeter Slattery
05/04/2022, 11:01 AMsns.publish()
. The thread you link to doesn't have any responses so asking here.Ashishkumar Pandey
05/04/2022, 11:30 AMsst deploy
.Frank
new Api(stack, "api", {
routes: {
"GET /.well-known/openid-configuration": "lambda.main",
"GET /.well-known/jwks.json": "lambda.main",
}
});
1st route works, jwks.json
route fails. U can see my Console screenshot above.Frank
thdxr
05/04/2022, 6:17 PM.
in the path name, pushing a fix nowthdxr
05/04/2022, 6:20 PMAshishkumar Pandey
05/06/2022, 4:10 AM