Authorization based on user federation data

Hello,
I am new in Keycloak, I am trying to use http based user store and I want to do authorization of application based on by http based application and user mapping which is available in current solution.
What would be best solution to use existing user & REST API applications authorized data mapping ?
How I can achieved it in keycloak?