Add PlatformOAuth2 class a Platform class with support for OAuth2.
Github login with OAuth2.