Move role related views to FAB Auth manager:

- List roles
- Edit role
- Create role
- View role
"""Set the current session with OAuth user secrets."""
        
        token_key = self.appbuilder.sm.get_oauth_token_key_name(provider)
        token_secret = self.appbuilder.sm.get_oauth_token_secret_name(provider)
        
        session["oauth"] = (
            oauth_response[token_key],
            oauth_response.get(token_secret, ""),
        )
        session["oauth_provider"] = provider
    def get_oauth_user_info(self, provider, resp):
        """Get the OAuth user information from different OAuth APIs.
        All providers have different ways to retrieve user info.
        """
        
        if provider == "github" or provider == "githublocal":
            me = self.appbuilder.sm.oauth_remotes[provider].get("user")
            data = me.json()
            log.debug("User info from GitHub: %s", data)
            return {"username": "github_" + data.get("login")}
        
        if provider == "twitter":
            me = self.appbuilder.sm.oauth_remotes[provider].get("account/settings.json")
            data = me.json()