Spark SSO "Not Authorized" Error

the next thing to do is to make sure you have your reverse dns (PTR) record setup correctly. An easy way to test this is to disable the reverse dns check by kerberos by adding

rdns = false

to the krb5.ini file