s3-auth: Provide helper routine to check password and return session_info