1. The issue can come dueto the white spaces added while configuring "org.apache.jackrabbit.oak.security.authentication.token.TokenConfigurationImpl". Please check for all extra white spaces existing in the configurations and do remove them.
I verified that there is no white space in any of the values set in o.a.j.o.s.a.t.TokenConfigurationImpl. I also tried to delete the cookies as was mentioned in the 'AEM unable to login' thread. Once I change the expiration value I'm essentially locked out of that instance. The one setting I've got a question about is the 'Hash Algorithm'. I'm not certain what should be set there and it's not mentioned in that documentation I linked above.