refactor get-resolver API call to save some code.
refactor get-resolver API call to save some code.

privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea,privacyidea/privacyidea