docs: public AuthConfigProvider setProvider(ProviderService providerService) {
          AuthConfigProvider authConfigProvider = null;
          if (providerService != null) {
              authConfigProvider = providerService.getAuthConfigProvider(this);
              registerConfigProvider(authConfigProvider, null, null, null);
          } else {
              removeRegistration(defaultRegistrationID.toString());
          }
          return authConfigProvider;
      }