Can you make sure the
Uri("https://server-url/realms/Test/protocol/openid-connect/auth")
work? Did you try to open it in the browser directly?