A Framework for Access Control and Resource Allocation for Federations