OpenAM can function as the authorization server and also as the client.