Setting remember=true on the consent doesn't reuse the same consent with session on subsequent calls #2834
-
Hi! In my consent-app I've configured the login to not be remembered (I'll authenticate the customer again and again if needed) but in the consent I've set remember=true. I've also added a session to the AcceptConsentRequest. This works great on the first login with a following consent ui displayed and posted, but on subsequent calls, with getSkip() returning true, the same consent isn't reused. Do I need to set the same session again? I was under the impression that the SAME consent would be reused, including the SAME session. If not, can I fetch that old consent and session from hydra to re-use it? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Hi @wederbrand You will need to skip the consent screen yourself in the consent-app. Look at this example on the docs: |
Beta Was this translation helpful? Give feedback.
-
To clarify. If I have 100 users each logging in and give consent with remember=true I would think that there would be 100 rows in the consent tables. Now, if those 100 each login 10 more times and correctly skips the consent-steop, I would think there still be those 100 rows in the consent tables. Instead there is now 11*100 rows, one for each time they logged in, including all those times the consent ui was skipped. They also get new hyra access tokens each time, shouldn't they get the refresh token they have already? |
Beta Was this translation helpful? Give feedback.
Hi @wederbrand
You will need to skip the consent screen yourself in the consent-app. Look at this example on the docs:
https://www.ory.sh/hydra/docs/guides/consent#skipping-consent-screen