Added new auth-provider features and fixes