List all consent sessions returns 404


#1

According to the API to list all consent sessions of a user we need to call GET /oauth2/auth/sessions/consent/{user} and for revoking DELETE on the same endpoint /oauth2/auth/sessions/consent/{user}

From github issue here /ory/hydra/issues/1031 I see there were some 404 problems but I still get the same error even though I use v1.0.0-rc.6_oryOS.10 version

GET request
http://localhost:4444/oauth2/auth/sessions/consent/[email protected]
404 page not found

http://localhost:4444/oauth2/auth/sessions/login/[email protected]
404 page not found

Am i missing something?

login.js

hydra.acceptLoginRequest(challenge, {
// Subject is an alias for user ID. A subject can be a random string, a UUID, an email address, …
subject: ‘[email protected]’,

I started hydra env by running these commands:

docker run -it --rm --name login-consent-hydra -p 4444:4444 -p 4445:4445
-e OAUTH2_SHARE_ERROR_DEBUG=1
-e LOG_LEVEL=debug
-e OAUTH2_CONSENT_URL=http://localhost:3000/consent
-e OAUTH2_LOGIN_URL=http://localhost:3000/login
-e OAUTH2_ISSUER_URL=http://localhost:4444
-e DATABASE_URL=memory
oryd/hydra:v1.0.0-rc.6_oryOS.10 serve all --dangerous-force-http

docker run --link login-consent-hydra:hydra oryd/hydra:v1.0.0-rc.6_oryOS.10 clients create
–endpoint http://hydra:4445
–id test-client
–secret test-secret
–response-types code,id_token
–grant-types refresh_token,authorization_code
–scope openid,offline
–token-endpoint-auth-method client_secret_post
–callbacks http://localhost:4000/auth/oidc/callback


#2

Wrong port, this stuff is not public -> should be 4445