Adding OAuth2 to API