microscopic-answer-24504
07/18/2022, 2:49 PMfaint-lawyer-28758
07/18/2022, 4:02 PMHow do I configure hydra to reject the auth flow if the current user is not allowed to access the client app that initiated the flow?You can use oathkeeper and configure cookie_session authenticator. In that case, oathkeeper passes only authenticated requests to hydra. The example configuration of oathkeeper.yml and access-rules
The app can access user info stored in kratos through theYou can use oathkeeper’s mutators (id_token for example) and pass the information to Hydra. On accept login you can add json information about the user (without personal data. E.g. user_id) and use adminGetIdentity API methodendpoint, but this is possible only if the app runs on the same domain as kratos because of the cookie domain configuration. Apps on a different domain can’t access the kratos session.sessions/whoami
faint-lawyer-28758
07/18/2022, 4:06 PMfreezing-church-83511
07/18/2022, 4:37 PM