Fix: Add initMethodAndUserAgent to auth initialization
Ensure the authentication method and user agent fields are initialized if they are not already set. This guarantees these fields are consistently available during authentication processing.
Signed-off-by: Christian Roessner c@roessner.co