I am trying to get running OAuth 2.0 authentication with hydra running locally, as well as all related appa on localhost and https protocol.
Login and Consent flow are working fine. But I have serios problem to get running Logout flow.
I have got info that with high probability it is due to wrong configuration.
Can anybody advise me with proper configuration?
I use hydra and postgre sql running in on Windows with Docker desktop with WSL2, based on hydra example.
Here you are error log with full stack info:
{
"audience":"application",
"error":{
"debug":"",
"message":"invalid_request",
"reason":"square/go-jose: compact JWS format must have three parts",
"stack_trace":"\
u000agithub.com/ory/x/errorsx.WithStack\u000a\u0009/go/pkg/mod/github.com/ory/x@v0.0.344/errorsx/errors.go:38\
u000agithub.com/ory/hydra/consent.(*DefaultStrategy).getIDTokenHintClaims\u000a\u0009/project/consent/strategy_default.go:192\
u000agithub.com/ory/hydra/consent.(*DefaultStrategy).issueLogoutVerifier\u000a\u0009/project/consent/strategy_default.go:803\
u000agithub.com/ory/hydra/consent.(*DefaultStrategy).HandleOpenIDConnectLogout\u000a\u0009/project/consent/strategy_default.go:996\
u000agithub.com/ory/hydra/oauth2.(*Handler).LogoutHandler\u000a\u0009/project/oauth2/handler.go:129\
u000agithub.com/julienschmidt/httprouter.(*Router).ServeHTTP\u000a\u0009/go/pkg/mod/github.com/julienschmidt/httprouter@v1.3.0/router.go:387\
u000agithub.com/urfave/negroni.Wrap.func1\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:46\
u000agithub.com/urfave/negroni.HandlerFunc.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29\
u000agithub.com/urfave/negroni.middleware.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go
38\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/ory/hydra/x.RejectInsecureRequests.func1\u000a\u0009/project/x/tls_termination.go:62\
u000agithub.com/urfave/negroni.HandlerFunc.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:29\
u000agithub.com/urfave/negroni.middleware.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\
u000agithub.com/ory/x/metricsx.(*Service).ServeHTTP\u000a\u0009/go/pkg/mod/github.com/ory/x@v0.0.344/metricsx/middleware.go:275\
u000agithub.com/urfave/negroni.middleware.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go
38\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerResponseSize.func1\u000a\u0009/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go
198\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1\u000a\u0009/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go
101\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func1\u000a\u0009/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go
68\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerDuration.func2\u000a\u0009/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go
76\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerRequestSize.func1\u000a\u0009/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go
165\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/ory/x/prometheusx.Metrics.instrumentHandlerStatusBucket.func1\u000a\u0009/go/pkg/mod/github.com/ory/x@v0.0.344/prometheusx/metrics.go
108\u000anet/http.HandlerFunc.ServeHTTP\u000a\u0009/usr/local/go/src/net/http/server.go2047\
u000agithub.com/ory/x/prometheusx.(*MetricsManager).ServeHTTP\u000a\u0009/go/pkg/mod/github.com/ory/x@v0.0.344/prometheusx/middleware.go:30\
u000agithub.com/urfave/negroni.middleware.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38\
u000agithub.com/ory/x/reqlog.(*Middleware).ServeHTTP\u000a\u0009/go/pkg/mod/github.com/ory/x@v0.0.344/reqlog/middleware.go:134\
u000agithub.com/urfave/negroni.middleware.ServeHTTP\u000a\u0009/go/pkg/mod/github.com/urfave/negroni@v1.0.0/negroni.go:38",
"status":"Bad Request",
"status_code":400
},
"file":"/project/x/errors.go:49",
"func":"
github.com/ory/hydra/x.LogError",
"http_request":{
"headers":{
"accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
"accept-encoding":"br, gzip, deflate",
"accept-language":"en-US,en;q=0.9,sk-SK;q=0.8,sk;q=0.7,cs;q=0.6,de;q=0.5",
"cache-control":"no-cache",
"cookie":["oauth2_authentication_csrf=MTY0ODQ3NTUzN3xEdi1CQkFFQ180SUFBUkFCRUFBQVB2LUNBQUVHYzNSeWFXNW5EQVlBQkdOemNtWUdjM1J5YVc1bkRDSUFJR0V4TlRabVpEYzNNak15T0RRNVpXSTRNelE1TkdVM01tSTVNVFV6WXpjeHyjViWP3qFFMw-xAxHancVTuAMI0SBrfYcChc8HTx-8PA==; oauth2_authentication_session=MTY0ODQ3NTU0MXxEdi1CQkFFQ180SUFBUkFCRUFBQVFmLUNBQUVHYzNSeWFXNW5EQVVBQTNOcFpBWnpkSEpwYm1jTUpnQWtOVFV5T1RNeU9EUXRZakZoWVMwMFl6RTBMVGd4WW1RdE5EQmhZMlpoWlRNek1tSmh83-ynFPFZ1vIW3lNcweKknwSaaNJPzp_qRlnNi5ksjFM=; oauth2_consent_csrf=MTY0ODQ3NTU0MXxEdi1CQkFFQ180SUFBUkFCRUFBQVB2LUNBQUVHYzNSeWFXNW5EQVlBQkdOemNtWUdjM1J5YVc1bkRDSUFJR0kwWmpZNE1HRmhPVEk0TkRSbE1tWmhORE0xTVRsbE1UQTNaRGt4T1RFM3xTGTgssQCQ056gAIRptKHRLR3Fps1SuKovzpVcsX2fNQ=="
],
"pragma":"no-cache",
"referer":"
https://localhost:4200/",
"sec-ch-ua":"\" Not A;Brand\";v=\"99\", \"Chromium\";v=\"99\", \"Google Chrome\";v=\"99\"",
"sec-ch-ua-mobile":"?0",
"sec-ch-ua-platform":"\"Windows\"",
"sec-fetch-dest":"document",
"sec-fetch-mode":"navigate",
"sec-fetch-site":"same-site",
"sec-fetch-user":"?1",
"upgrade-insecure-requests":"1",
"user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36"
},
"host":"localhost:9000",
"method":"GET",
"path":"/oauth2/sessions/logout",
"query":"id_token_hint=5LkjHjpL1ysnJjSveDtfx9MrFOhwLLTUzLdgdwoRMnU.oQzsAenV-DXIqk4UQPsx8D6b0feApmb_pTmtNbRdw4k&post_logout_redirect_uri=https%3A%2F%2Flocalhost%3A4200&state=b7586ea9f5cc4daf8ad9276d945e080a",
"remote":"172.19.0.1:46460",
"scheme":"https"
},
"level":"error",
"msg":"An error occurred",
"service_name":"Ory Hydra",
"service_version":"v1.11.7",
"time":"2022-03-28T13
5251Z"
}