def get_oauth_user_info(self, provider, resp=None):
        # for GITHUB
        if provider == 'github' or provider == 'githublocal':
            me = self.appbuilder.sm.oauth_remotes[provider].get('user')
            log.debug("User info from Github: {0}".format(me.data))
            return {'username': me.data.get('login')}
        # for twitter
        if provider == 'twitter':
            me = self.appbuilder.sm.oauth_remotes[provider].get('account/settings.json')
            log.debug("User info from Twitter: {0}".format(me.data))
            return {'username': me.data.get('screen_name','')}
        # for linkedin
        if provider == 'linkedin':
            me = self.appbuilder.sm.oauth_remotes[provider].get('people/~:(id,email-address,first-name,last-name)?format=json')
            log.debug("User info from Linkedin: {0}".format(me.data))
            return {'username': me.data.get('id',''),
                'email': me.data.get('email-address',''),
                'first_name': me.data.get('firstName',''),
                'last_name': me.data.get('lastName','')}
        # for Google
        if provider == 'google':
            me = self.appbuilder.sm.oauth_remotes[provider].get('people/me')
            log.debug("User info from Google: {0}".format(me.data))
            return {'username': me.data.get('displayName',''),
                'email': me.data['emails'][0].get('value',''),
                'first_name': me.data['name'].get('givenName',''),
                'last_name': me.data['name'].get('familyName','')}
        else: return {}
Add one more label-option pair to this field.
dataset/ETHPy150Open dpgaspar/Flask-AppBuilder/flask_appbuilder/security/manager.py/BaseSecurityManager.get_oauth_user_info--crossover with--dataset/ETHPy150Open CouchPotato/CouchPotatoServer/libs/xmpp/protocol.py/DataField.addOption