converting to oauth2 from openid