Skip to content

Commit

Permalink
fix: "unable to decode body" when logging in for the first time with …
Browse files Browse the repository at this point in the history
…google (PS-97)
  • Loading branch information
splaunov committed Oct 11, 2023
1 parent 06151db commit 44f7f8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion selfservice/hook/verification.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (e *Verifier) do(r *http.Request, i *identity.Identity, f flow.Flow) error
}

var body transientPayloadBody
if err := e.dx.Decode(r, &body, compiler); err != nil {
if err := e.dx.Decode(r, &body, compiler, decoderx.HTTPDecoderAllowedMethods("GET", "POST", "PUT", "PATCH")); err != nil {
return err
}

Expand Down
1 change: 1 addition & 0 deletions selfservice/strategy/oidc/strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func TestStrategy(t *testing.T) {
remoteAdmin, remotePublic, hydraIntegrationTSURL := newHydra(t, &subject, &claims, &scope)
returnTS := newReturnTs(t, reg)
conf.MustSet(ctx, config.ViperKeyURLsAllowedReturnToDomains, []string{returnTS.URL})
conf.MustSet(ctx, config.ViperKeySelfServiceVerificationEnabled, true)
uiTS := newUI(t, reg)
errTS := testhelpers.NewErrorTestServer(t, reg)
routerP := x.NewRouterPublic()
Expand Down

0 comments on commit 44f7f8c

Please sign in to comment.