def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=web.config.github_client_id, client_secret=web.config.github_client_secret, name='github', authorize_url='https://github.com/login/oauth/authorize', access_token_url='https://github.com/login/oauth/access_token', base_url='https://api.github.com/') self.redirect_uri = redirect_uri
def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=web.config.google_client_id, client_secret=web.config.google_client_secret, name='google', authorize_url='https://accounts.google.com/o/oauth2/auth', access_token_url='https://accounts.google.com/o/oauth2/token', base_url='https://www.googleapis.com/oauth2/v1/') self.redirect_uri = redirect_uri
def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=web.config.facebook_client_id, client_secret=web.config.facebook_client_secret, name='facebook', authorize_url='https://graph.facebook.com/oauth/authorize', access_token_url='https://graph.facebook.com/oauth/access_token', base_url='https://graph.facebook.com/') self.redirect_uri = redirect_uri
def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=app.config['GOOGLE_CLIENT_ID'], client_secret=app.config['GOOGLE_CLIENT_SECRET'], name='google', authorize_url='https://accounts.google.com/o/oauth2/auth', access_token_url='https://accounts.google.com/o/oauth2/token', base_url='https://www.googleapis.com/oauth2/v1/') self.redirect_uri = redirect_uri
def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=app.config['FACEBOOK_CLIENT_ID'], client_secret=app.config['FACEBOOK_CLIENT_SECRET'], name='facebook', authorize_url='https://graph.facebook.com/oauth/authorize', access_token_url='https://graph.facebook.com/oauth/access_token', base_url='https://graph.facebook.com/') self.redirect_uri = redirect_uri
def __init__(self, redirect_uri): OAuth2Service.__init__(self, client_id=app.config['MICROSOFT_CLIENT_ID'], client_secret=app.config['MICROSOFT_CLIENT_SECRET'], name='microsoft', authorize_url='https://login.live.com/oauth20_authorize.srf', access_token_url='https://login.live.com/oauth20_token.srf', base_url='https://apis.live.net/v5.0/') self.redirect_uri = redirect_uri