Closed geraldyeo closed 3 months ago
I tried to trace the values out from the request
Ok, I found out my issue: I implemented my own session storage with MongoDB, and I needed an extra field oauth2:codeVerifier
in the schema. The auth flow worked using codeChallengeMethod: "S256"
and authenticateWith: "request_body"
.
Hi,
I'm having issues with getting the access token from Cognito token endpoint since upgrading to V2.
This is the example code of a successful request on Cognito's doc:
After troubleshooting, I discovered a couple of things:
@oslojs/oauth2
that theAuthorization
header is missing theBasic
prefixremix-auth-oauth2
'sauthenticate
method sets either headers or body, but not both (not sure if I'm mistaken here). However Cognito's request seems to need both.I'm not sure if it's a bug (by cognito or remix-auth-oauth2) to be fixed, or do I need to extend the strategy and override
authenticate
.Any advice?