Working on oAuth endpoint.