Hello everyone!
Our app uses self-hosted Kratos as identity provider, and we recently enabled SSO for login with various OIDC providers. Everything works great.
My question is - We would like to extend the functionality beyond basic authentication, and let users manage their identities using their provider of choice. So for example, let's say that upon registration we get a list of groups the user is a member of and define it's roles accordinally. But afterwards, if the users settings are changed in the providers, like if the user is removed from one of the groups, we want to be able to know about it and update our database as well. There is not a real need for "realtime" actions, but say within the hour.
What is the best way / best practice to achieve this?