oauth and oauth2 authentication mechanisms