Hello 🙂
We implemented this flow a while ago:
https://www.ory.sh/docs/kratos/manage-identities/invite-users
However, we received report of users who connect to the platform for the first time using SSO getting logged in even tho the SSO provider have rejected the login (ex: the application is not yet authorized in their tenant).
My understanding is that by using the recovery flow, a session is generated for them, but this session is not invalidated when the user get rejected by their SSO.
How could I make sure the session expires?
We use a custom UI for the login page.