docs: protected String getBasicAuthRealmName(WebRequest webRequest) {
          SecurityMetadata securityMetadata = webRequest.getSecurityMetadata();
          if (securityMetadata != null) {
              LoginConfiguration loginConfig = securityMetadata.getLoginConfiguration();
              if (loginConfig != null && loginConfig.getRealmName() != null) {
                  return loginConfig.getRealmName();
              }
              if (config.getDisplayAuthenticationRealm()) {
                  return userRegistry.getRealm();
              }
          }
          String realm = "defaultRealm";
          return realm;
      }