authenticating using openid connection to correct endpoint