@Unauthenticated
    @Override
    public InternalIdpPasswordPolicyConfig fetchPasswordPolicy() {
        final PasswordPolicyConfig passwordPolicyConfig = serviceProvider.get().getPasswordPolicy();
        return new InternalIdpPasswordPolicyConfig(
                passwordPolicyConfig.isAllowPasswordResets(),
                passwordPolicyConfig.getPasswordComplexityRegex(),
                passwordPolicyConfig.getMinimumPasswordStrength(),
                passwordPolicyConfig.getMinimumPasswordLength(),
                passwordPolicyConfig.getPasswordPolicyMessage());
    }
Called as part of logout flow when using internal identity provider.
stroom-security/stroom-security-identity/src/main/java/stroom/security/identity/authenticate/AuthenticationResourceImpl.java