after test

This commit is contained in:
mr
2024-11-05 10:11:39 +01:00
parent 8b8e5d92d7
commit d229d92b3b
9 changed files with 37 additions and 29 deletions

View File

@@ -158,17 +158,6 @@ func (o *OAuthController) InternalAuthForward() {
o.ServeJSON()
return
}
isToken, err := infrastructure.GetAuthConnector().Introspect(reqToken, &http.Cookie{
Name: "csrf_token",
Value: o.XSRFToken(),
}) // may be a problem... we should check if token is valid on our side
fmt.Println("InternalAuthForward", isToken, err)
// prefers a refresh token call
if err != nil || !isToken {
o.Ctx.ResponseWriter.WriteHeader(401)
} else {
o.Ctx.ResponseWriter.WriteHeader(200)
}
o.ServeJSON()
}