How to delegate the authorization process in Camunda 8?

Hi all, I am looking for a way to change spring security authentication to process in camunda 8. Depending on the profile (dev or prod) I need to change the authentication method (get token from keycloak or via SSO), but in the end we still get token. I’ve been learning camunda for 2 weeks and don’t quite know how to implement this… Are there already solutions for this and where can I find information about it? I haven’t found one in the github.