Oathkeeper Hydrator issue #672
Answered
by
vinckr
Mshivam2409
asked this question in
Q&A
-
Hello everyone,
Even though I have a simple code in express import express, { json } from "express"
const hydrator = express()
hydrator.use(json())
hydrator.all("/", (req, res, next) => {
return res.status(200).json(req.body)
})
hydrator.listen(9004) Even in Go with fiber framework I'm getting the same error func Hydrate(ctx *fiber.Ctx) error {
log.Print(ctx)
a := &models.AuthenticationSession{}
err := ctx.BodyParser(a)
if err != nil {
log.Print(err)
return err
}
a.Header.Add("role", "user")
log.Print(a.Header)
n := *a
return ctx.Status(200).JSON(n)
} |
Beta Was this translation helpful? Give feedback.
Answered by
vinckr
Apr 6, 2021
Replies: 1 comment 1 reply
-
Sorry for the late reply! |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
vinckr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sorry for the late reply!
I can't say what the issue is here, maybe could you share a repo or some steps how to reproduce?