Limit access to a Discourse forum based on AD Group using Keycloak?

Is this even a thing? I’ve searched everywhere for some kind of existing question but could not find one. Anyone done this?