Refactoring
Application registry

This is useful to check client-ids, secrets and look-up callback URLs