RStudio when launched without Singularity is having strange troubles with authentication

Full info + Solution: Thanks to @dugan and @maflister
For those who run into this in the future here is the changes that had to be implemented:
Installed rstudio 1.3.1093 natively with the rpm (will test with source later)
yum install -y rstudio-server-rhel-1.3.1093-x86_64.rpm
In thetemplate/script.sh.erb ensure you use the following :

rserver \
 --www-port "${port}" \
 --auth-none 0 \
 --auth-pam-helper-path "${RSTUDIO_AUTH}" \
 --auth-encrypt-password 0 \
 --rsession-path "${RSESSION_WRAPPER_FILE}" \
 --server-data-dir "${TMPDIR}" \
 --secure-cookie-key-file "${TMPDIR}/rstudio-server/secure-cookie-key"

Ref: @maflister specifically https://github.com/mcw-rcc/bc_rcc_rstudio_server

If you haven’t already, you need to update the template/bin/auth and change the ‘-ne’ flag to ‘-lt’

#!/usr/bin/env bash

# Confirm username is supplied

if [[ $# -lt 1 ]]; then

echo "Usage: auth USERNAME"

exit 1

fi

USERNAME="${1}"

# Confirm password environment variable exists

if [[ -z ${RSTUDIO_PASSWORD} ]]; then

echo "The environment variable RSTUDIO_PASSWORD is not set"

exit 1

fi

# Read in the password from user

read -s -p "Password: " PASSWORD

echo ""

if [[ ${USERNAME} == ${USER} && ${PASSWORD} == ${RSTUDIO_PASSWORD} ]]; then

echo "Successful authentication"

exit 0

else

echo "Invalid authentication"

exit 1

fi

Ref: @dugan specifically https://github.com/OSC/bc_osc_rstudio_server/issues/34