'Ensure a GitHub SocialApp is installed, configured.'

def ensure_github_app(self):

    provider = registry.by_id(KumaGitHubProvider.id)
    (app, created) = SocialApp.objects.get_or_create(provider=provider.id, defaults={'name': provider.id, 'client_id': 'app123id', 'key': provider.id, 'secret': 'dummy'})
    if created:
        app.sites.add(Site.objects.get_current())
    return app
